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
a44a3015
Commit
a44a3015
authored
Jan 24, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语音发送服务修改 gengdidi
parent
ade4db6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
VoiceNotifyServiceImpl.java
...ng/communication/service/impl/VoiceNotifyServiceImpl.java
+4
-0
application.yml
src/main/resources/application.yml
+8
-3
No files found.
src/main/java/com/zehong/communication/service/impl/VoiceNotifyServiceImpl.java
View file @
a44a3015
...
...
@@ -29,6 +29,9 @@ public class VoiceNotifyServiceImpl implements VoiceNotifyService {
@Value
(
"${batchVoiceNotifyURL}"
)
private
String
batchVoiceNotifyURL
;
@Value
(
"${displayNum}"
)
private
String
displayNum
;
@Override
public
Result
sendVoiceNotify
(
SendVoiceNotify
sendVoiceNotify
)
throws
IOException
,
URISyntaxException
{
Map
<
String
,
Object
>
params
=
getParams
();
...
...
@@ -52,6 +55,7 @@ public class VoiceNotifyServiceImpl implements VoiceNotifyService {
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"appId"
,
appId
);
params
.
put
(
"appKey"
,
appKey
);
params
.
put
(
"displayNum"
,
displayNum
);
return
params
;
}
}
src/main/resources/application.yml
View file @
a44a3015
...
...
@@ -34,11 +34,13 @@ appKey: IE5F7Jih
batchVoiceNotifyURL
:
https://api.253.com/open/notify/batch-voice-notify
#阿里云发送短信或批量发送短信
accessKeyId
:
LTAI2xiZNF3iV2aV
accessKeySecret
:
bprEWwn1M0xgglRQCQEMYSPiYctDk4
#accessKeyId: LTAI2xiZNF3iV2aV
#accessKeySecret: bprEWwn1M0xgglRQCQEMYSPiYctDk4
accessKeyId
:
LTAI5tC2wUxESqPG5FpmP2DX
accessKeySecret
:
THvYOSu8EKvz3Hk7s8nDTQ11Y8kPH7
#ip白名单
iPWhite
:
36.148.1.58,12
0.0.70.251
iPWhite
:
36.148.1.58,12
1.29.172.242,111.61.77.35,27.128.170.124,36.148.1.58,101.16.95.194
#秘钥
secretKey
:
f225e66813e6d6a663daf919c1935dcb
...
...
@@ -46,6 +48,9 @@ secretKey: f225e66813e6d6a663daf919c1935dcb
#是否写入本地
isWriteLocal
:
true
#语音发送限制去除
displayNum
:
0820211216
logging
:
# 设置logback.xml位置
# config: classpath:logback.xml
...
...
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