| | |
| | | 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); |
| | |
| | | if(reqJson.containsKey("success")&&reqJson.getBooleanValue("success")){ |
| | | String userIds = reqJson.getString("successful"); |
| | | if(!StringUtils.isEmpty(userIds)){ |
| | | JSONArray jsonArray = JSONArray.parseArray(userIds); |
| | | logger.info("成功通知结果解析数组"+jsonArray.toJSONString()); |
| | | String[] userIdArray = new String[]{userIds}; |
| | | if(userIds.contains(",")){ |
| | | userIdArray = userIds.split(","); |
| | |
| | | jsonObject.put("method","get_person"); |
| | | jsonObject.put("params",new JSONObject()); |
| | | JSONObject dataJson = new JSONObject(); |
| | | dataJson.put("path",faceConfig.getUrlPrefix()+"/"+"getPersonDetail"); |
| | | dataJson.put("path",faceConfig.getUrlPrefix()+"getPersonDetail"); |
| | | dataJson.put("person_id",perId); |
| | | jsonObject.put("data",dataJson); |
| | | List<String> sns = faceDeviceMapper.queryDevSn(); |