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
fa8ab204
Commit
fa8ab204
authored
Oct 24, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai会话
parent
887dc4e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
...rc/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
+2
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ImServiceImpl.java
...-api/src/main/java/com/wwdz/ch/wx/impl/ImServiceImpl.java
+1
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
View file @
fa8ab204
...
...
@@ -37,13 +37,14 @@ public class IMCallbackController {
public
Object
getCallbackInfo
(
@RequestParam
(
required
=
false
,
name
=
"SdkAppid"
)
String
sdkAppid
,
@RequestParam
(
required
=
false
,
name
=
"OptPlatform"
)
String
optPlatform
,
@RequestParam
(
required
=
false
,
name
=
"CallbackCommand"
)
String
callbackCommand
,
@RequestBody
(
required
=
false
)
String
jsonStr
)
{
@RequestBody
(
required
=
false
)
JSONObject
jsonObject
)
{
try
{
logger
.
info
(
"消息发送之后的回调url参数 -> SdkAppid: {}, OptPlatform:{}, CallbackCommand:{}"
,
sdkAppid
,
optPlatform
,
callbackCommand
);
if
(!
sdkAppid
.
equals
(
String
.
valueOf
(
SDKAppID
)))
{
logger
.
info
(
">>>>>>>>>>> IM回调sdkappid 不一致 <<<<<<<<<<<"
);
return
false
;
}
String
jsonStr
=
JsonUtils
.
from
(
jsonObject
);
logger
.
info
(
"消息发送之后的回调推送原文 -> {}"
,
jsonStr
);
ImRecord
imRecord
=
new
ImRecord
();
//发送消息后回调信息处理
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ImServiceImpl.java
View file @
fa8ab204
...
...
@@ -167,7 +167,7 @@ public class ImServiceImpl implements IMService {
ImRecord
answerImRecord
=
new
ImRecord
();
answerImRecord
.
setFromAccount
(
dto
.
getToAccount
());
answerImRecord
.
setToAccount
(
dto
.
getFromAccount
());
i
mRecord
.
setMsgKey
(
answerResult
.
getData
());
answerI
mRecord
.
setMsgKey
(
answerResult
.
getData
());
answerImRecord
.
setMsgType
(
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
());
answerImRecord
.
setMsgContent
(
answer
);
answerImRecord
.
setOnlineOnlyFlag
(
0
);
...
...
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