Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
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
lanbaoming
jiedao-api-boot-master
Commits
af740648
Commit
af740648
authored
Dec 24, 2024
by
honghy
Committed by
wux
Jan 02, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据debug配置决定是否发送短信
parent
a455fe6e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
BulksmsHttp.java
...java/cn/iocoder/yudao/framework/http/sms/BulksmsHttp.java
+0
-2
SendChampHttp.java
...va/cn/iocoder/yudao/framework/http/sms/SendChampHttp.java
+0
-1
SmsSendServiceImpl.java
...r/yudao/module/system/service/sms/SmsSendServiceImpl.java
+3
-4
No files found.
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/sms/BulksmsHttp.java
View file @
af740648
...
...
@@ -4,7 +4,6 @@ import cn.iocoder.yudao.framework.http.core.Request;
import
cn.iocoder.yudao.framework.http.core.Response
;
import
cn.iocoder.yudao.framework.http.util.HttpUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jetbrains.annotations.NotNull
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -46,7 +45,6 @@ public class BulksmsHttp {
* @param password 密码
* @return 参数映射
*/
@NotNull
public
Map
<
String
,
Object
>
setParams
(
String
mobiles
,
String
message
,
String
senderName
,
String
username
,
String
password
)
{
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"username"
,
username
);
...
...
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/sms/SendChampHttp.java
View file @
af740648
...
...
@@ -52,7 +52,6 @@ public class SendChampHttp {
* @param apiKey SendChamp API密钥
* @return 返回构造好的请求头Map对象
*/
@NotNull
public
Map
<
String
,
String
>
setHeader
(
String
apiKey
)
{
Map
<
String
,
String
>
header
=
new
HashMap
<>();
header
.
put
(
"Accept"
,
"application/json,text/plain,*/*"
);
...
...
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/sms/SmsSendServiceImpl.java
View file @
af740648
...
...
@@ -387,10 +387,9 @@ public class SmsSendServiceImpl implements SmsSendService {
throw
exception
(
SMS_CHANNEL_NOT_EXISTS
);
}
//根据debug配置决定是否发送短信
// if ((Objects.isNull(businessProperties) || !businessProperties.isDebug()) && smsChannel.getStatus() == 0) {
// smsProducer.sendSmsSendMessageV2(smsSendMessage);
// }
smsProducer
.
sendSmsSendMessageV2
(
smsSendMessage
);
if
((
Objects
.
isNull
(
businessProperties
)
||
!
businessProperties
.
isDebug
())
&&
smsChannel
.
getStatus
()
==
0
)
{
smsProducer
.
sendSmsSendMessageV2
(
smsSendMessage
);
}
return
sendLogId
;
}
...
...
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