Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
Overview
Overview
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
wx
yanxuan-wx-store-sharer
Commits
169ef3ce
Commit
169ef3ce
authored
May 15, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推客分佣单阿波罗配置调整
parent
8c4b927f
Pipeline
#75527
passed with stages
in 1 minute 3 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
SmsServiceImpl.java
...xuan/wx/store/sharer/biz/service/impl/SmsServiceImpl.java
+3
-2
UasClientImpl.java
...x/store/sharer/integration/client/impl/UasClientImpl.java
+5
-1
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/SmsServiceImpl.java
View file @
169ef3ce
...
...
@@ -19,6 +19,7 @@ import org.springframework.stereotype.Service;
import
java.time.LocalDate
;
import
java.time.format.DateTimeFormatter
;
import
java.util.UUID
;
import
java.util.concurrent.TimeUnit
;
...
...
@@ -44,7 +45,7 @@ public class SmsServiceImpl implements ISmsService {
validateSendCode
(
bo
.
getScenes
(),
bo
.
getMobilePhone
());
boolean
success
=
sendCode
(
bo
.
getScenes
(),
bo
.
getMobilePhone
());
if
(!
success
)
{
log
.
error
(
"[op:sendSmsCode] is
fail
..."
);
log
.
error
(
"[op:sendSmsCode] is
error
..."
);
throw
new
BizException
(
"短信验证码发送失败"
);
}
}
...
...
@@ -77,7 +78,7 @@ public class SmsServiceImpl implements ISmsService {
// 生成6位随机数字
String
code
=
RandomUtils
.
randomNumber
(
6
);
// uas发送验证码
boolean
success
=
iUasClient
.
sendSmsCode
(
"1"
,
boolean
success
=
iUasClient
.
sendSmsCode
(
UUID
.
randomUUID
().
toString
()
,
mobilePhone
,
code
,
scenes
,
scenesConfigBO
);
if
(!
success
)
{
return
false
;
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/client/impl/UasClientImpl.java
View file @
169ef3ce
...
...
@@ -6,6 +6,7 @@
*/
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
client
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.integration.client.IUasClient
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.RpcConfig
;
...
...
@@ -45,12 +46,15 @@ public class UasClientImpl implements IUasClient {
public
boolean
sendSmsCode
(
String
uid
,
String
phone
,
String
code
,
String
scenes
,
SmsCodeScenesConfigBO
scenesConfigBO
)
{
Map
<
String
,
Object
>
params
=
assembleSmsArg
(
uid
,
phone
,
code
,
scenes
,
scenesConfigBO
);
log
.
error
(
"[op:UasClientImpl:sendSmsCode] params:{}"
,
JSON
.
toJSONString
(
params
));
String
httpUrl
=
rpcConfig
.
getUasUrl
()
+
SMS_SEND_PATH
+
PRODUCT
;
try
{
log
.
error
(
"[op:UasClientImpl:sendSmsCode] httpUrl:{}"
,
httpUrl
);
JSONObject
rpcResult
=
restTemplateHandler
.
execute
(
httpUrl
,
HttpMethod
.
POST
,
params
,
JSONObject
.
class
);
log
.
error
(
"[op:UasClientImpl:sendSmsCode] rpcResult:{}"
,
JSON
.
toJSONString
(
rpcResult
));
return
rpcResult
.
getIntValue
(
"code"
)
==
200
;
}
catch
(
Exception
e
)
{
log
.
error
(
"[
SMS_SEND_CODE] send code error:
"
,
e
);
log
.
error
(
"[
op:UasClientImpl:sendSmsCode] is error
"
,
e
);
return
false
;
}
}
...
...
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