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
0e5722bb
Commit
0e5722bb
authored
Oct 12, 2021
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化push
parent
3a48b8f0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
common/src/main/java/com/wecloud/im/param/add/ImClientDeviceInfoAdd.java
+1
-1
common/src/main/java/com/wecloud/im/ws/sender/SystemPush.java
+1
-1
common/src/main/java/com/wecloud/im/ws/strategy/concrete/ImChatConcrete.java
+2
-3
common/src/main/java/com/wecloud/im/ws/strategy/concrete/SingleRtcConcrete.java
+1
-1
No files found.
common/src/main/java/com/wecloud/im/param/add/ImClientDeviceInfoAdd.java
View file @
0e5722bb
...
...
@@ -23,7 +23,7 @@ public class ImClientDeviceInfoAdd extends BaseEntity {
@ApiModelProperty
(
"设备不想收到推送提醒, 1想, 0不想"
)
private
Integer
valid
;
@ApiModelProperty
(
"设备类型1:ios; 2:android"
)
@ApiModelProperty
(
"设备类型1:ios; 2:android
; 3:web
"
)
private
Integer
deviceType
;
@ApiModelProperty
(
"设备推送token"
)
...
...
common/src/main/java/com/wecloud/im/ws/sender/SystemPush.java
View file @
0e5722bb
...
...
@@ -92,7 +92,7 @@ public class SystemPush {
if
(
imClientReceiver
.
getDeviceType
()
==
1
)
{
ios
(
pushModel
,
imClientReceiver
,
imApplication
,
pushType
);
}
else
{
}
else
if
(
imClientReceiver
.
getDeviceType
()
==
2
)
{
android
(
pushModel
,
imClientReceiver
,
imApplication
);
}
}
...
...
common/src/main/java/com/wecloud/im/ws/strategy/concrete/ImChatConcrete.java
View file @
0e5722bb
...
...
@@ -73,12 +73,11 @@ public class ImChatConcrete extends ImCmdAbstract {
private
ImClientService
imClientService
;
@Autowired
private
SystemPush
pushTask
;
private
SystemPush
systemPush
;
@Override
public
void
process
(
ReceiveModel
receiveModel
,
ChannelHandlerContext
ctx
,
String
data
,
String
appKey
,
String
clientId
)
throws
JsonProcessingException
{
// String language = ctx.channel().attr(MangerChannelService.LANGUAGE).get();
// 查询imApplication
ImApplication
imApplication
=
imApplicationService
.
getOneByAppKey
(
appKey
);
...
...
@@ -183,7 +182,7 @@ public class ImChatConcrete extends ImCmdAbstract {
writeDataService
.
write
(
responseModel
,
appKey
,
imClientReceiver
.
getClientId
());
// 异步推送系统通知消息
pushTask
.
push
(
pushMap
,
imClientReceiver
,
imApplication
,
PushType
.
ALERT
);
systemPush
.
push
(
pushMap
,
imClientReceiver
,
imApplication
,
PushType
.
ALERT
);
}
// 响应发送方消息id等信息
...
...
common/src/main/java/com/wecloud/im/ws/strategy/concrete/SingleRtcConcrete.java
View file @
0e5722bb
...
...
@@ -68,7 +68,7 @@ public class SingleRtcConcrete extends ImCmdAbstract {
private
ImClientService
imClientService
;
@Autowired
private
SystemPush
pushTask
;
private
SystemPush
systemPush
;
@Override
public
void
process
(
ReceiveModel
receiveModel
,
ChannelHandlerContext
ctx
,
String
data
,
String
appKey
,
String
clientId
)
throws
JsonProcessingException
{
...
...
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