| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.nacos.api.utils.StringUtils; |
| | | import com.thhy.staff.config.EmqxConfig; |
| | | import com.thhy.staff.config.FaceConfig; |
| | | import com.thhy.staff.modules.biz.face.entity.FaceDevice; |
| | | import com.thhy.staff.modules.biz.face.entity.FaceResult; |
| | | import com.thhy.staff.modules.biz.face.entity.UserFaceVo; |
| | |
| | | |
| | | @Value("${file.vfprefix}") |
| | | private String vfPrefix; |
| | | |
| | | @Autowired |
| | | private FaceConfig faceConfig; |
| | | |
| | | private Logger logger = LoggerFactory.getLogger(FaceServer.class); |
| | | |
| | |
| | | String userId = userIdArray.getString(0); |
| | | |
| | | UserFaceVo userFaceVo = userMapper.queryUserFaceSingle(userId); |
| | | userFaceVo.setTemplateImgUrl(vfPrefix+"/"+userFaceVo.getTemplateImgUrl()); |
| | | |
| | | List<String> url = new ArrayList<>(); |
| | | url.add(vfPrefix+userFaceVo.getPhoto()); |
| | | userFaceVo.setTemplateImgUrl(url); |
| | | |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("code",0); |
| | |
| | | jsonObject.put("method","get_person"); |
| | | jsonObject.put("params",new JSONObject()); |
| | | JSONObject dataJson = new JSONObject(); |
| | | dataJson.put("path",vfPrefix+"/"+"getPersonDetail"); |
| | | dataJson.put("path",faceConfig.getUrlPrefix()+"getPersonDetail"); |
| | | dataJson.put("person_id",perId); |
| | | jsonObject.put("data",dataJson); |
| | | List<String> sns = faceDeviceMapper.queryDevSn(); |