Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-platform
Commits
be3a2b46
Commit
be3a2b46
authored
Aug 18, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送push和站内信新增用户是否存在判断
parent
9b8b3a06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
MsgServiceImpl.java
.../cn/qg/qaplatform/service/stools/impl/MsgServiceImpl.java
+16
-2
No files found.
src/main/java/cn/qg/qaplatform/service/stools/impl/MsgServiceImpl.java
View file @
be3a2b46
...
...
@@ -38,7 +38,14 @@ public class MsgServiceImpl extends ServiceImpl<MsgMapper, MsgTemplate> implemen
*/
@Override
public
boolean
sendPush
(
String
namespace
,
String
phoneNo
,
String
contentId
,
List
<
String
>
contentArgs
)
{
String
userId
=
xyqbBasicQueryService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
).
getUserId
();
XjfqGenProcessVo
xjfqGenProcessVo
=
xyqbBasicQueryService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
);
String
userId
;
if
(
xjfqGenProcessVo
==
null
)
{
log
.
info
(
"用户中心查不到手机号{},因此本次不发送短信."
,
phoneNo
);
return
false
;
}
else
{
userId
=
xjfqGenProcessVo
.
getUserId
();
}
String
url
=
"https://msgapi-"
+
namespace
+
".liangkebang.net/middle_office/send/message/appPush"
;
List
<
Map
<
String
,
Object
>>
paramList
=
new
ArrayList
<>();
Map
<
String
,
Object
>
sendMap
=
new
HashMap
<>();
...
...
@@ -63,7 +70,14 @@ public class MsgServiceImpl extends ServiceImpl<MsgMapper, MsgTemplate> implemen
*/
@Override
public
boolean
sendStationLetter
(
String
namespace
,
String
phoneNo
,
String
contentId
,
List
<
String
>
contentArgs
)
{
String
userId
=
xyqbBasicQueryService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
).
getUserId
();
XjfqGenProcessVo
xjfqGenProcessVo
=
xyqbBasicQueryService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
);
String
userId
;
if
(
xjfqGenProcessVo
==
null
)
{
log
.
info
(
"用户中心查不到手机号{},因此本次不发送短信."
,
phoneNo
);
return
false
;
}
else
{
userId
=
xjfqGenProcessVo
.
getUserId
();
}
String
url
=
"https://msgapi-"
+
namespace
+
".liangkebang.net/middle_office/send/message/stationLetter"
;
List
<
Map
<
String
,
Object
>>
paramList
=
new
ArrayList
<>();
Map
<
String
,
Object
>
sendMap
=
new
HashMap
<>();
...
...
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