Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
7ff3922c
Commit
7ff3922c
authored
Oct 24, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息发送后保存记录的操作删除由回调执行
parent
7a1d8de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
...rc/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
+6
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
View file @
7ff3922c
...
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.wwdz.ch.core.consts.IMEnum
;
import
com.wwdz.ch.core.util.IMUtil
;
import
com.wwdz.ch.db.domain.ImRecord
;
import
com.wwdz.ch.wx.service.ImRecordService
;
import
com.xxdxxs.utils.JsonUtils
;
...
...
@@ -31,6 +32,9 @@ public class IMCallbackController {
@Autowired
ImRecordService
imRecordService
;
@Autowired
IMUtil
imUtil
;
/**
* OptPlatform,对应不同的平台类型,可能的取值有:RESTAPI(使用 REST API 发送请求)
* 、Web(使用 Web SDK 发送请求)、Android、iOS、Windows、Mac、iPad、Unknown(使用未知类型的设备发送请求)
...
...
@@ -74,8 +78,8 @@ public class IMCallbackController {
content
=
JsonUtils
.
getValueByPath
(
contentJsonStr
,
"Text"
);
}
imRecord
.
setFromAccount
(
fromAccount
);
imRecord
.
setToAccount
(
toAccount
);
imRecord
.
setFromAccount
(
imUtil
.
revertAppletUserId
(
fromAccount
)
);
imRecord
.
setToAccount
(
imUtil
.
revertAppletUserId
(
toAccount
)
);
imRecord
.
setMsgTime
(
new
Date
(
msgTime
));
imRecord
.
setMsgKey
(
msgKey
);
imRecord
.
setMsgType
(
IMEnum
.
MsgTypeEnum
.
getCodeByValue
(
msgType
));
...
...
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