Commit c3f6bc90 by 徐高华

退出监控

parent c837cc24
...@@ -42,10 +42,9 @@ public class QywxCallbackController extends WebBaseController { ...@@ -42,10 +42,9 @@ public class QywxCallbackController extends WebBaseController {
JSONObject jsonObject = JSONObject.parseObject(body) ; JSONObject jsonObject = JSONObject.parseObject(body) ;
int type = jsonObject.getIntValue("type") ; int type = jsonObject.getIntValue("type") ;
String uuid = jsonObject.getString("uuid") ; String uuid = jsonObject.getString("uuid") ;
String msg = jsonObject.getString("msg") ;
Long qwStaffId = jsonObject.getLong("vid") ; Long qwStaffId = jsonObject.getLong("vid") ;
JSONObject json = jsonObject.getJSONObject("json") ; JSONObject json = jsonObject.getJSONObject("json") ;
this.post(type,uuid,json , qwStaffId , msg); this.post(type,uuid,json , qwStaffId);
Map<String,String> map = new HashMap<>() ; Map<String,String> map = new HashMap<>() ;
map.put("errcode","0") ; map.put("errcode","0") ;
map.put("errmsg","ok") ; map.put("errmsg","ok") ;
...@@ -56,7 +55,7 @@ public class QywxCallbackController extends WebBaseController { ...@@ -56,7 +55,7 @@ public class QywxCallbackController extends WebBaseController {
return "ok" ; return "ok" ;
} }
private void post(int type , String uuid , JSONObject json , Long qwStaffId , String msg) { private void post(int type , String uuid , JSONObject json , Long qwStaffId) {
switch (type) { switch (type) {
case 116002: case 116002:
this.addFriend(json , qwStaffId) ; this.addFriend(json , qwStaffId) ;
...@@ -92,7 +91,7 @@ public class QywxCallbackController extends WebBaseController { ...@@ -92,7 +91,7 @@ public class QywxCallbackController extends WebBaseController {
this.close(uuid,OpenStaffOfflineEnum.OFFLINE4); this.close(uuid,OpenStaffOfflineEnum.OFFLINE4);
break; break;
case 100007: case 100007:
this.close(uuid,OpenStaffOfflineEnum.OFFLINE2,msg); this.close(uuid,OpenStaffOfflineEnum.OFFLINE2,json.getString("msg"));
break; break;
default: default:
break; break;
......
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