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
9f84ab0b
Commit
9f84ab0b
authored
Nov 09, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息自定义字段
parent
276fd97f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/SysIMController.java
...in/java/com/wwdz/ch/admin/controller/SysIMController.java
+2
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
...rc/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
+6
-1
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/SysIMController.java
View file @
9f84ab0b
...
@@ -11,6 +11,7 @@ import com.wwdz.ch.db.dto.request.ImRecordRequestDto;
...
@@ -11,6 +11,7 @@ import com.wwdz.ch.db.dto.request.ImRecordRequestDto;
import
com.wwdz.ch.db.dto.request.UserRequestDto
;
import
com.wwdz.ch.db.dto.request.UserRequestDto
;
import
com.xxdxxs.utils.StringUtils
;
import
com.xxdxxs.utils.StringUtils
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -31,7 +32,7 @@ public class SysIMController {
...
@@ -31,7 +32,7 @@ public class SysIMController {
@Autowired
@Autowired
SysIMService
sysIMService
;
SysIMService
sysIMService
;
// @RequiresPermissions("admin:sysIM:sendChatMsg")
@ApiOperation
(
value
=
"人工介入ai发送聊天消息"
)
@ApiOperation
(
value
=
"人工介入ai发送聊天消息"
)
@PostMapping
(
"/sendChatMsg"
)
@PostMapping
(
"/sendChatMsg"
)
public
Result
sendChatMsg
(
@RequestBody
SendChatMsgRequestDto
dto
)
{
public
Result
sendChatMsg
(
@RequestBody
SendChatMsgRequestDto
dto
)
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
View file @
9f84ab0b
...
@@ -71,7 +71,12 @@ public class IMCallbackController {
...
@@ -71,7 +71,12 @@ public class IMCallbackController {
String
onlineOnlyFlag
=
JsonUtils
.
getValueByPath
(
jsonStr
,
"OnlineOnlyFlag"
);
String
onlineOnlyFlag
=
JsonUtils
.
getValueByPath
(
jsonStr
,
"OnlineOnlyFlag"
);
String
sendMsgResult
=
JsonUtils
.
getValueByPath
(
jsonStr
,
"SendMsgResult"
);
String
sendMsgResult
=
JsonUtils
.
getValueByPath
(
jsonStr
,
"SendMsgResult"
);
String
errorInfo
=
JsonUtils
.
getValueByPath
(
jsonStr
,
"ErrorInfo"
);
String
errorInfo
=
JsonUtils
.
getValueByPath
(
jsonStr
,
"ErrorInfo"
);
String
cloudCustomData
=
JsonUtils
.
getValueByPath
(
jsonStr
,
"CloudCustomData"
);
String
cloudCustomData
=
null
;
try
{
cloudCustomData
=
JsonUtils
.
getValueByPath
(
jsonStr
,
"CloudCustomData"
);
}
catch
(
Exception
e
)
{
}
if
(!
"0"
.
equals
(
sendMsgResult
))
{
if
(!
"0"
.
equals
(
sendMsgResult
))
{
logger
.
error
(
"msgKey:{}, 消息下发失败错误信息:{}"
,
msgKey
,
errorInfo
);
logger
.
error
(
"msgKey:{}, 消息下发失败错误信息:{}"
,
msgKey
,
errorInfo
);
imRecord
.
setState
(
IMEnum
.
MsgStateEnum
.
FAILED
.
getCode
());
imRecord
.
setState
(
IMEnum
.
MsgStateEnum
.
FAILED
.
getCode
());
...
...
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