Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
push-message
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liucheng
push-message
Commits
a5766f69
Commit
a5766f69
authored
Nov 14, 2022
by
Aleyn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bug' into 'master'
1,推送类型加上联合推送 See merge request
!31
parents
ed53074b
10548ae1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
MobPushService.java
src/main/java/com/weface/component/MobPushService.java
+3
-1
PushLogServiceImpl.java
src/main/java/com/weface/serviceimpl/PushLogServiceImpl.java
+0
-9
No files found.
src/main/java/com/weface/component/MobPushService.java
View file @
a5766f69
...
@@ -361,8 +361,10 @@ public class MobPushService {
...
@@ -361,8 +361,10 @@ public class MobPushService {
int
push
;
int
push
;
if
(
pushType
==
null
||
pushType
==
0
)
{
if
(
pushType
==
null
||
pushType
==
0
)
{
push
=
0
;
push
=
0
;
}
else
{
}
else
if
(
pushType
==
1
)
{
push
=
2
;
push
=
2
;
}
else
{
push
=
pushType
;
}
}
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>(
2
);
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>(
2
);
//设置包名
//设置包名
...
...
src/main/java/com/weface/serviceimpl/PushLogServiceImpl.java
View file @
a5766f69
...
@@ -82,9 +82,6 @@ public class PushLogServiceImpl extends ServiceImpl<PushLogDao, PushLogEntity> i
...
@@ -82,9 +82,6 @@ public class PushLogServiceImpl extends ServiceImpl<PushLogDao, PushLogEntity> i
taskId
=
taskId
.
substring
(
0
,
200
);
taskId
=
taskId
.
substring
(
0
,
200
);
}
}
pushLogEntity
.
setTaskId
(
taskId
);
pushLogEntity
.
setTaskId
(
taskId
);
if
(
StringUtils
.
isNotEmpty
(
result
)
&&
result
.
length
()
>
200
)
{
result
=
result
.
substring
(
0
,
200
);
}
pushLogEntity
.
setResult
(
result
);
pushLogEntity
.
setResult
(
result
);
String
phone
=
informForm
.
getPhone
();
String
phone
=
informForm
.
getPhone
();
if
(
StringUtils
.
isNotEmpty
(
phone
))
{
if
(
StringUtils
.
isNotEmpty
(
phone
))
{
...
@@ -109,15 +106,9 @@ public class PushLogServiceImpl extends ServiceImpl<PushLogDao, PushLogEntity> i
...
@@ -109,15 +106,9 @@ public class PushLogServiceImpl extends ServiceImpl<PushLogDao, PushLogEntity> i
}
}
pushLogEntity
.
setPushTarget
(
pushTarget
);
pushLogEntity
.
setPushTarget
(
pushTarget
);
String
body
=
informForm
.
getBody
();
String
body
=
informForm
.
getBody
();
if
(
StringUtils
.
isNotEmpty
(
body
)
&&
body
.
length
()
>
200
)
{
body
=
body
.
substring
(
0
,
200
);
}
pushLogEntity
.
setPushContent
(
body
);
pushLogEntity
.
setPushContent
(
body
);
pushLogEntity
.
setArriveStatus
(
1001
);
pushLogEntity
.
setArriveStatus
(
1001
);
String
jsonStr
=
JSONUtil
.
toJsonStr
(
informForm
);
String
jsonStr
=
JSONUtil
.
toJsonStr
(
informForm
);
if
(
jsonStr
.
length
()
>
200
)
{
jsonStr
=
jsonStr
.
substring
(
0
,
200
);
}
pushLogEntity
.
setBas1
(
jsonStr
);
pushLogEntity
.
setBas1
(
jsonStr
);
pushLogEntity
.
setUpdateTime
(
new
Date
());
pushLogEntity
.
setUpdateTime
(
new
Date
());
return
pushLogEntity
;
return
pushLogEntity
;
...
...
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