Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
c837cc24
Commit
c837cc24
authored
Jul 18, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退出监控
parent
4c3a7b16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
QywxCallbackController.java
.../haoban/manage/web/controller/QywxCallbackController.java
+10
-3
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/QywxCallbackController.java
View file @
c837cc24
...
...
@@ -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
())
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment