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
d85a8d41
Commit
d85a8d41
authored
Nov 10, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息发送加入reqId
parent
9fe2050a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+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
-0
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/ChatApiTest.java
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/ChatApiTest.java
+1
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ImServiceImpl.java
View file @
d85a8d41
...
@@ -156,6 +156,7 @@ public class ImServiceImpl implements IMService {
...
@@ -156,6 +156,7 @@ public class ImServiceImpl implements IMService {
answerDto
.
setToAccount
(
dto
.
getFromAccount
());
answerDto
.
setToAccount
(
dto
.
getFromAccount
());
answerDto
.
setMsgType
(
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
());
answerDto
.
setMsgType
(
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
());
answerDto
.
setMsgContent
(
answer
);
answerDto
.
setMsgContent
(
answer
);
answerDto
.
setReqId
(
dto
.
getReqId
());
//判断该AI回答是否已被停止
//判断该AI回答是否已被停止
if
(
redisUtils
.
hasKey
(
dto
.
getReqId
())){
if
(
redisUtils
.
hasKey
(
dto
.
getReqId
())){
...
...
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/ChatApiTest.java
View file @
d85a8d41
...
@@ -133,7 +133,7 @@ public class ChatApiTest {
...
@@ -133,7 +133,7 @@ public class ChatApiTest {
sendChatMsgRequestDto
.
setMsgType
(
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
());
sendChatMsgRequestDto
.
setMsgType
(
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
());
sendChatMsgRequestDto
.
setReqId
(
"12123123122223"
);
sendChatMsgRequestDto
.
setReqId
(
"12123123122223"
);
long
timestamp
=
System
.
currentTimeMillis
();
long
timestamp
=
System
.
currentTimeMillis
();
String
msgContent
=
"什么是袁大头"
;
String
msgContent
=
"什么是袁大头
"
;
// String msgContent = "Hi,欢迎来到老猫的世界";
// String msgContent = "Hi,欢迎来到老猫的世界";
sendChatMsgRequestDto
.
setMsgContent
(
msgContent
);
sendChatMsgRequestDto
.
setMsgContent
(
msgContent
);
Result
<
String
>
result
=
imService
.
sendAiChatMsg
(
sendChatMsgRequestDto
);
Result
<
String
>
result
=
imService
.
sendAiChatMsg
(
sendChatMsgRequestDto
);
...
...
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