|
@@ -64,8 +64,8 @@ public class FaceTBServiceImpl implements FaceTBService {
|
|
|
@Autowired
|
|
|
private NettyClient nettyClient;
|
|
|
|
|
|
- @Autowired
|
|
|
- private TaskPoolConfig taskPoolConfig;
|
|
|
+// @Autowired
|
|
|
+// private TaskPoolConfig taskPoolConfig;
|
|
|
|
|
|
@Override
|
|
|
public Boolean downFace(Long userId, Date startTime, Date endTime, Integer adminId) {
|
|
@@ -666,16 +666,10 @@ public class FaceTBServiceImpl implements FaceTBService {
|
|
|
if (verifytype == 0 || verifytype == 2) {
|
|
|
faceLogDao.insertSelective(faceLog);
|
|
|
}
|
|
|
- //开启线程
|
|
|
- FaceLog finalFaceLog = faceLog;
|
|
|
- taskPoolConfig.executor().execute(new Runnable() {
|
|
|
- @Override
|
|
|
- public void run() {
|
|
|
- Map<String, String> map = new HashMap<>(1);
|
|
|
- map.put("face-log", JSONObject.toJSONString(finalFaceLog));
|
|
|
- nettyClient.sendMessage(JSON.toJSONString(map));
|
|
|
- }
|
|
|
- });
|
|
|
+ Map<String, String> maps = new HashMap<>(1);
|
|
|
+ maps.put("face-log", JSONObject.toJSONString(faceLog));
|
|
|
+ nettyClient.sendMessage(JSON.toJSONString(maps));
|
|
|
+
|
|
|
}
|
|
|
return result;
|
|
|
}
|