| | |
| | | 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); |
| | | |
| | |
| | | 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(); |