Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
d6290168
Commit
d6290168
authored
Nov 14, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
d59c5ebf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
bootstrap/src/main/java/io/geekidea/springbootplus/handler/GlobalExceptionHandler.java
+1
-0
core/src/main/java/com/wecloud/im/controller/ImMessageController.java
+7
-1
No files found.
bootstrap/src/main/java/io/geekidea/springbootplus/handler/GlobalExceptionHandler.java
View file @
d6290168
...
@@ -233,6 +233,7 @@ public class GlobalExceptionHandler {
...
@@ -233,6 +233,7 @@ public class GlobalExceptionHandler {
public
ApiResult
<
Boolean
>
exceptionHandler
(
Exception
exception
)
{
public
ApiResult
<
Boolean
>
exceptionHandler
(
Exception
exception
)
{
printRequestDetail
();
printRequestDetail
();
printApiCodeException
(
ApiCode
.
SYSTEM_EXCEPTION
,
exception
);
printApiCodeException
(
ApiCode
.
SYSTEM_EXCEPTION
,
exception
);
log
.
error
(
"全局异常触发"
,
exception
);
return
ApiResult
.
fail
(
ApiCode
.
SYSTEM_EXCEPTION
);
return
ApiResult
.
fail
(
ApiCode
.
SYSTEM_EXCEPTION
);
}
}
...
...
core/src/main/java/com/wecloud/im/controller/ImMessageController.java
View file @
d6290168
...
@@ -145,7 +145,13 @@ public class ImMessageController extends BaseController {
...
@@ -145,7 +145,13 @@ public class ImMessageController extends BaseController {
@ApiOperation
(
"单个用户通知-普通消息"
)
@ApiOperation
(
"单个用户通知-普通消息"
)
@PostMapping
(
"/system-notification/publish"
)
@PostMapping
(
"/system-notification/publish"
)
public
ApiResult
<
Boolean
>
singleUserNotification
(
@RequestBody
@Validated
SingleUserNotificationParam
param
)
{
public
ApiResult
<
Boolean
>
singleUserNotification
(
@RequestBody
@Validated
SingleUserNotificationParam
param
)
{
return
ApiResult
.
ok
(
imMessageService
.
singleUserNotification
(
param
));
Boolean
result
=
false
;
try
{
result
=
imMessageService
.
singleUserNotification
(
param
);
}
catch
(
Exception
e
)
{
log
.
info
(
"消息推送异常"
,
e
);
}
return
ApiResult
.
ok
(
result
);
}
}
@ApiOperation
(
"获取同步历史消息"
)
@ApiOperation
(
"获取同步历史消息"
)
@PostMapping
(
"/listMessage"
)
@PostMapping
(
"/listMessage"
)
...
...
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