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
7bd0d4fb
Commit
7bd0d4fb
authored
May 15, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推客分佣单阿波罗配置调整
parent
169ef3ce
Pipeline
#75528
passed with stages
in 1 minute 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
4 deletions
+40
-4
UasClientImpl.java
...x/store/sharer/integration/client/impl/UasClientImpl.java
+15
-4
SendSmsCodeBO.java
...store/sharer/integration/meta/model/bo/SendSmsCodeBO.java
+25
-0
No files found.
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/client/impl/UasClientImpl.java
View file @
7bd0d4fb
...
@@ -7,14 +7,17 @@
...
@@ -7,14 +7,17 @@
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
client
.
impl
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
client
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.
alibaba.fastjson.JSONObject
;
import
com.
netease.yanxuan.wx.store.sharer.common.exception.BizException
;
import
com.netease.yanxuan.wx.store.sharer.integration.client.IUasClient
;
import
com.netease.yanxuan.wx.store.sharer.integration.client.IUasClient
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.RpcConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.RpcConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.handler.RestTemplateHandler
;
import
com.netease.yanxuan.wx.store.sharer.integration.handler.RestTemplateHandler
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.SendSmsCodeBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.SmsCodeScenesConfigBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.SmsCodeScenesConfigBO
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -50,13 +53,21 @@ public class UasClientImpl implements IUasClient {
...
@@ -50,13 +53,21 @@ public class UasClientImpl implements IUasClient {
String
httpUrl
=
rpcConfig
.
getUasUrl
()
+
SMS_SEND_PATH
+
PRODUCT
;
String
httpUrl
=
rpcConfig
.
getUasUrl
()
+
SMS_SEND_PATH
+
PRODUCT
;
try
{
try
{
log
.
error
(
"[op:UasClientImpl:sendSmsCode] httpUrl:{}"
,
httpUrl
);
log
.
error
(
"[op:UasClientImpl:sendSmsCode] httpUrl:{}"
,
httpUrl
);
JSONObject
rpcResult
=
restTemplateHandler
.
execute
(
httpUrl
,
HttpMethod
.
POST
,
params
,
JSONObject
.
class
);
SendSmsCodeBO
rpcResult
=
restTemplateHandler
.
execute
(
httpUrl
,
HttpMethod
.
POST
,
params
,
SendSmsCodeBO
.
class
);
log
.
error
(
"[op:UasClientImpl:sendSmsCode] rpcResult:{}"
,
JSON
.
toJSONString
(
rpcResult
));
log
.
error
(
"[op:UasClientImpl:sendSmsCode] rpcResult:{}"
,
JSON
.
toJSONString
(
rpcResult
));
return
rpcResult
.
getIntValue
(
"code"
)
==
200
;
if
(
null
==
rpcResult
){
return
false
;
}
if
(
HttpStatus
.
OK
.
value
()
==
rpcResult
.
getCode
()){
return
true
;
}
if
(
StringUtils
.
isNotBlank
(
rpcResult
.
getErrorCode
())){
throw
new
BizException
(
rpcResult
.
getErrorCode
());
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"[op:UasClientImpl:sendSmsCode] is error"
,
e
);
log
.
error
(
"[op:UasClientImpl:sendSmsCode] is error"
,
e
);
return
false
;
}
}
return
false
;
}
}
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/meta/model/bo/SendSmsCodeBO.java
0 → 100644
View file @
7bd0d4fb
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
meta
.
model
.
bo
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @Description 微信凭证-核心对象
* @Author fanjiaxin
* @Date 2025/3/11 19:05
*/
@Data
public
class
SendSmsCodeBO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 响应码
*/
private
Integer
code
;
/**
* 错误编码
*/
private
String
errorCode
;
}
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