|
@@ -11,11 +11,14 @@ import me.zhengjie.modules.dm.user.service.dto.DmUserQueryCriteria;
|
|
|
import me.zhengjie.modules.system.service.DeptService;
|
|
|
import me.zhengjie.modules.system.service.dto.DeptDto;
|
|
|
import me.zhengjie.modules.system.service.dto.DeptQueryNoAuthCriteria;
|
|
|
+import me.zhengjie.utils.ImageUtil;
|
|
|
import me.zhengjie.utils.SecurityUtils;
|
|
|
import me.zhengjie.utils.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
+import java.net.MalformedURLException;
|
|
|
+import java.net.URL;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
@@ -89,7 +92,7 @@ public class ZkDataPushTask {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void pushFeiPuUserData(){
|
|
|
+ private void pushFeiPuUserData() throws Exception {
|
|
|
String api = "openapi/personOperate";
|
|
|
List<Map<String,String>> dmUserDtoList = dmUserService.queryAll();
|
|
|
if(!ObjectUtils.isEmpty(dmUserDtoList)){
|
|
@@ -111,7 +114,7 @@ public class ZkDataPushTask {
|
|
|
param.put("operateType",1);
|
|
|
if(map.containsKey("faceId")){
|
|
|
if(!ObjectUtils.isEmpty(map.get("faceId"))){
|
|
|
- param.put("facePicture",map.get("faceId"));
|
|
|
+ param.put("facePicture", ImageUtil.encodeImageToBase64(new URL(map.get("faceId"))));
|
|
|
}
|
|
|
}
|
|
|
String res = HttpRequest.post(fpApi+api)
|