Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
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
poc
poc-api
Commits
11aa6811
Commit
11aa6811
authored
Apr 07, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 百度SMS 模板更改
parent
d08286e2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BaiDuThirdPlatformService.java
.../support/sms/channel/baidu/BaiDuThirdPlatformService.java
+1
-1
config.properties
src/main/resources/framemax-config/config.properties
+2
-2
No files found.
src/main/java/cn/com/poc/support/sms/channel/baidu/BaiDuThirdPlatformService.java
View file @
11aa6811
...
...
@@ -46,7 +46,7 @@ public class BaiDuThirdPlatformService implements ThirdPlatformSmsService {
request
.
setTemplate
(
Config
.
get
(
"baidu.code.gangAo.template"
));
}
Map
<
String
,
String
>
contentVar
=
new
HashMap
<>();
contentVar
.
put
(
"
sms
Code"
,
code
);
contentVar
.
put
(
"
SMSv
Code"
,
code
);
request
.
setContentVar
(
contentVar
);
SendMessageV3Response
response
=
client
.
sendMessage
(
request
);
// 解析请求响应 response.isSuccess()为true 表示成功
...
...
src/main/resources/framemax-config/config.properties
View file @
11aa6811
...
...
@@ -52,9 +52,9 @@ baidu.code.keyId=ae40d293ec92452789c8f0c25a3d4e32
baidu.code.keySecret
=
3357e3507c514175ac99e20e99ccfb1e
#baidu sms template \ signature
baidu.code.mainLand.signatureId
=
sms-sign-wqlTsv51668
baidu.code.mainLand.template
=
sms-tmpl-
JSlPbF49715
baidu.code.mainLand.template
=
sms-tmpl-
AnDHlz15911
baidu.code.gangAo.signatureId
=
sms-sign-FcfPaR54702
baidu.code.gangAo.template
=
sms-tmpl-
thhNEu03466
baidu.code.gangAo.template
=
sms-tmpl-
GZmkfn63181
#tencent
tencent.speech.synthesizer.appid
=
1251105573
tencent.speech.synthesizer.secretId
=
AKIDAGE2Y1KWTGTTKZ5d5KTO5XzNdnpfOxPL
...
...
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