Commit c837cc24 by 徐高华

退出监控

parent 4c3a7b16
......@@ -42,9 +42,10 @@ public class QywxCallbackController extends WebBaseController {
JSONObject jsonObject = JSONObject.parseObject(body) ;
int type = jsonObject.getIntValue("type") ;
String uuid = jsonObject.getString("uuid") ;
String msg = jsonObject.getString("msg") ;
Long qwStaffId = jsonObject.getLong("vid") ;
JSONObject json = jsonObject.getJSONObject("json") ;
this.post(type,uuid,json , qwStaffId);
this.post(type,uuid,json , qwStaffId , msg);
Map<String,String> map = new HashMap<>() ;
map.put("errcode","0") ;
map.put("errmsg","ok") ;
......@@ -55,7 +56,7 @@ public class QywxCallbackController extends WebBaseController {
return "ok" ;
}
private void post(int type , String uuid , JSONObject json , Long qwStaffId) {
private void post(int type , String uuid , JSONObject json , Long qwStaffId , String msg) {
switch (type) {
case 116002:
this.addFriend(json , qwStaffId) ;
......@@ -91,7 +92,7 @@ public class QywxCallbackController extends WebBaseController {
this.close(uuid,OpenStaffOfflineEnum.OFFLINE4);
break;
case 100007:
this.close(uuid,OpenStaffOfflineEnum.OFFLINE2);
this.close(uuid,OpenStaffOfflineEnum.OFFLINE2,msg);
break;
default:
break;
......@@ -290,6 +291,12 @@ public class QywxCallbackController extends WebBaseController {
logger.info("退出={}",uuid);
this.openStaffApiService.logout(uuid, offlineEnum) ;
}
private void close(String uuid , OpenStaffOfflineEnum offlineEnum , String msg) {
logger.info("退出={},msg={}",uuid,msg);
com.gic.haoban.common.utils.DingUtils.send("请检查"+uuid+msg, false);
this.openStaffApiService.logout(uuid, offlineEnum) ;
}
private void v100003(String uuid , JSONObject json) {
logger.info("取消登录={}",uuid);
this.openStaffApiService.updateLoginStep(uuid,QwOpenStepEnum.step2.getStep()) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment