Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dmhub-plugin
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
qinxunjia
dmhub-plugin
Commits
67f2b6a5
Commit
67f2b6a5
authored
Jul 07, 2020
by
fuwanli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '730' of
http://gitlab.ioubuy.cn/xunjia/dmhub-plugin
parents
a5a5c489
9744bce5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
1 deletion
+47
-1
DmHubApi.java
src/main/java/com/bgy/sms/channel/api/DmHubApi.java
+1
-1
DmHubBatchSendRequest.java
...n/java/com/bgy/sms/channel/dto/DmHubBatchSendRequest.java
+20
-0
DmHubSendRequest.java
src/main/java/com/bgy/sms/channel/dto/DmHubSendRequest.java
+20
-0
MessageServiceImpl.java
...ain/java/com/bgy/sms/service/impl/MessageServiceImpl.java
+6
-0
No files found.
src/main/java/com/bgy/sms/channel/api/DmHubApi.java
View file @
67f2b6a5
...
...
@@ -128,7 +128,7 @@ public class DmHubApi {
log
.
info
(
"**********单条发送入参*******:{},\r\n appId:{},timestamp:{},signature:{}"
,
JSONObject
.
toJSONString
(
request
),
appId
,
timestamp
,
signature
);
DmHubResponse
response
;
try
{
boolean
checkResult
=
this
.
checkSignature
(
timestamp
,
signature
);
boolean
checkResult
=
this
.
checkSignature
(
timestamp
,
signature
);
if
(!
checkResult
)
{
return
new
DmHubResponse
(
"555"
,
"签名校验不通过"
);
}
...
...
src/main/java/com/bgy/sms/channel/dto/DmHubBatchSendRequest.java
View file @
67f2b6a5
...
...
@@ -22,6 +22,10 @@ public class DmHubBatchSendRequest implements Serializable {
// 短信数据
private
List
<
JSONObject
>
data
;
private
String
channelAccount
;
private
String
channelType
;
public
String
getTemplateId
()
{
return
templateId
;
...
...
@@ -54,4 +58,20 @@ public class DmHubBatchSendRequest implements Serializable {
public
void
setAudienceIdType
(
String
audienceIdType
)
{
this
.
audienceIdType
=
audienceIdType
;
}
public
String
getChannelAccount
()
{
return
channelAccount
;
}
public
void
setChannelAccount
(
String
channelAccount
)
{
this
.
channelAccount
=
channelAccount
;
}
public
String
getChannelType
()
{
return
channelType
;
}
public
void
setChannelType
(
String
channelType
)
{
this
.
channelType
=
channelType
;
}
}
src/main/java/com/bgy/sms/channel/dto/DmHubSendRequest.java
View file @
67f2b6a5
...
...
@@ -22,6 +22,10 @@ public class DmHubSendRequest implements Serializable {
// 发送数据
private
JSONObject
data
;
private
String
channelAccount
;
private
String
channelType
;
public
String
getTemplateId
()
{
return
templateId
;
...
...
@@ -54,4 +58,20 @@ public class DmHubSendRequest implements Serializable {
public
void
setData
(
JSONObject
data
)
{
this
.
data
=
data
;
}
public
String
getChannelAccount
()
{
return
channelAccount
;
}
public
void
setChannelAccount
(
String
channelAccount
)
{
this
.
channelAccount
=
channelAccount
;
}
public
String
getChannelType
()
{
return
channelType
;
}
public
void
setChannelType
(
String
channelType
)
{
this
.
channelType
=
channelType
;
}
}
src/main/java/com/bgy/sms/service/impl/MessageServiceImpl.java
View file @
67f2b6a5
...
...
@@ -246,6 +246,9 @@ public class MessageServiceImpl implements MessageService {
List
<
String
>
paramList
=
new
ArrayList
<>();
String
mobile
=
data
.
getString
(
"_audienceId"
);
data
.
remove
(
"name"
);
data
.
remove
(
"smsMessage"
);
data
.
remove
(
"inWhiteList"
);
data
.
remove
(
"isRealtime"
);
data
.
remove
(
"id"
);
data
.
remove
(
"_audienceId"
);
...
...
@@ -376,6 +379,9 @@ public class MessageServiceImpl implements MessageService {
Set
<
String
>
keys
=
json
.
keySet
();
String
mobile
=
json
.
getString
(
"_audienceId"
);
json
.
remove
(
"name"
);
json
.
remove
(
"smsMessage"
);
json
.
remove
(
"inWhiteList"
);
json
.
remove
(
"isRealtime"
);
json
.
remove
(
"id"
);
json
.
remove
(
"_audienceId"
);
mobileList
.
add
(
mobile
);
...
...
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