Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
communication
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
communication
Commits
ade4db6b
Commit
ade4db6b
authored
Aug 12, 2021
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群发语音修改 gengdidi
parent
3d370aa6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
13 deletions
+4
-13
SmsController.java
...va/com/zehong/communication/controller/SmsController.java
+1
-1
VoiceNotifyController.java
...ehong/communication/controller/VoiceNotifyController.java
+2
-2
SendBatchVoiceNotify.java
.../com/zehong/communication/model/SendBatchVoiceNotify.java
+1
-6
VoiceNotifyServiceImpl.java
...ng/communication/service/impl/VoiceNotifyServiceImpl.java
+0
-4
No files found.
src/main/java/com/zehong/communication/controller/SmsController.java
View file @
ade4db6b
...
...
@@ -35,7 +35,7 @@ public class SmsController {
* @param sendSms 短信实体
* @return Result
*/
@RequestMapping
(
value
=
"/sendSms"
,
method
=
RequestMethod
.
GE
T
)
@RequestMapping
(
value
=
"/sendSms"
,
method
=
RequestMethod
.
POS
T
)
public
Result
sendSms
(
@Valid
@RequestBody
SendSms
sendSms
,
BindingResult
result
){
try
{
if
(
result
.
hasErrors
()){
...
...
src/main/java/com/zehong/communication/controller/VoiceNotifyController.java
View file @
ade4db6b
...
...
@@ -32,7 +32,7 @@ public class VoiceNotifyController {
* @param sendVoiceNotify 发送语音实体
* @return String
*/
@RequestMapping
(
value
=
"/sendVoiceNotify"
,
method
=
RequestMethod
.
GE
T
)
@RequestMapping
(
value
=
"/sendVoiceNotify"
,
method
=
RequestMethod
.
POS
T
)
public
Result
sendVoiceNotify
(
@Valid
@RequestBody
SendVoiceNotify
sendVoiceNotify
,
BindingResult
result
){
try
{
if
(
result
.
hasErrors
()){
...
...
@@ -50,7 +50,7 @@ public class VoiceNotifyController {
* @param sendBatchVoiceNotify 批量发送语音实体
* @return String
*/
@RequestMapping
(
value
=
"/sendBatchVoiceNotify"
,
method
=
RequestMethod
.
GE
T
)
@RequestMapping
(
value
=
"/sendBatchVoiceNotify"
,
method
=
RequestMethod
.
POS
T
)
public
Result
sendBatchVoiceNotify
(
@Valid
@RequestBody
SendBatchVoiceNotify
sendBatchVoiceNotify
,
BindingResult
result
){
try
{
if
(
result
.
hasErrors
()){
...
...
src/main/java/com/zehong/communication/model/SendBatchVoiceNotify.java
View file @
ade4db6b
...
...
@@ -8,7 +8,7 @@ public class SendBatchVoiceNotify extends BaseRequestModel {
/**
* 语音群发号码
*
"[133333333,133333333]"
*
被叫号码,模版无变量多个则以英文半角分号“;”分割;模板带变量,多个号码以英文分号“;”分割,号码和变量以英文逗号“,”隔开, 多个变量以竖线“|”隔开,如 130XXXXXXXX,123|456;186XXXXXXXX,321|654(注意:文件语音模板类型 号码之间分隔用“,”隔开)
*/
@NotBlank
(
message
=
"语音群发号码不能为空"
)
private
String
phoneNumberJson
;
...
...
@@ -19,10 +19,5 @@ public class SendBatchVoiceNotify extends BaseRequestModel {
@NotBlank
(
message
=
"语音模板不能为空"
)
private
String
templateId
;
/**
*模板变量字符串
* [{\"变量1\":\"值1\",\"变量2\":\"值2\",\"变量3\":\"值3\"},{\"变量1\":\"值1\",\"变量2\":\"值2\",\"变量3\":\"值3\"}]
*/
private
String
paramJson
;
}
src/main/java/com/zehong/communication/service/impl/VoiceNotifyServiceImpl.java
View file @
ade4db6b
...
...
@@ -45,10 +45,6 @@ public class VoiceNotifyServiceImpl implements VoiceNotifyService {
Map
<
String
,
Object
>
params
=
getParams
();
params
.
put
(
"mobile"
,
sendBatchVoiceNotify
.
getPhoneNumberJson
());
params
.
put
(
"templateId"
,
sendBatchVoiceNotify
.
getTemplateId
());
if
(
StringUtils
.
isNotBlank
(
sendBatchVoiceNotify
.
getParamJson
())){
params
.
put
(
"param"
,
sendBatchVoiceNotify
.
getParamJson
());
}
return
HttpUtil
.
doPost
(
batchVoiceNotifyURL
,
params
);
}
...
...
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