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
e5cbbcc4
Commit
e5cbbcc4
authored
Oct 18, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IM
parent
68e5444b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ch-core/src/main/java/com/wwdz/ch/core/im/api/TLSSigApi.java
ch-core/src/main/java/com/wwdz/ch/core/im/api/TLSSigApi.java
+1
-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
+4
-1
No files found.
ch-core/src/main/java/com/wwdz/ch/core/im/api/TLSSigApi.java
View file @
e5cbbcc4
...
...
@@ -64,7 +64,7 @@ public class TLSSigApi {
* @return
*/
private
String
getUserSigKey
(
String
userId
)
{
return
USERSIG_KEY
+
imUtil
.
formatUserId
(
userId
)
;
return
USERSIG_KEY
+
userId
;
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/IMServiceImpl.java
View file @
e5cbbcc4
...
...
@@ -6,6 +6,7 @@ import com.wwdz.ch.core.entity.im.IMChatRequestDto;
import
com.wwdz.ch.core.im.api.ConversationApi
;
import
com.wwdz.ch.core.im.api.TLSSigApi
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.util.IMUtil
;
import
com.wwdz.ch.db.dao.AiAssistantDao
;
import
com.wwdz.ch.db.domain.AiAssistant
;
import
com.wwdz.ch.wx.service.IMService
;
...
...
@@ -34,6 +35,8 @@ public class IMServiceImpl implements IMService {
@Autowired
TLSSigApi
tlsSigApi
;
@Autowired
IMUtil
imUtil
;
/**
* 新增ai会话,发送默认打招呼的消息
...
...
@@ -72,7 +75,7 @@ public class IMServiceImpl implements IMService {
@Override
public
Result
getUserSig
(
IMChatRequestDto
dto
)
{
try
{
String
userSig
=
tlsSigApi
.
getUserSig
(
String
.
valueOf
(
dto
.
getUserId
(
)));
String
userSig
=
tlsSigApi
.
getUserSig
(
imUtil
.
formatUserId
(
String
.
valueOf
(
dto
.
getUserId
()
)));
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"userSig"
,
userSig
);
return
Result
.
success
(
map
);
...
...
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