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
fffb8ad9
Commit
fffb8ad9
authored
May 15, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推客短信发送调试
parent
80d9d0c8
Pipeline
#75541
passed with stages
in 1 minute 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
+30
-6
WebConfig.java
...netease/yanxuan/wx/store/sharer/biz/config/WebConfig.java
+1
-1
TestController.java
...anxuan/wx/store/sharer/web/controller/TestController.java
+29
-5
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/WebConfig.java
View file @
fffb8ad9
...
...
@@ -22,7 +22,7 @@ public class WebConfig implements WebMvcConfigurer {
private
final
UserInterceptor
userInterceptor
;
private
static
final
String
[]
EXCLUDE_URLS
=
{
"/i/health"
,
"/sharer/open/**"
,
"/sharer/test/**"
,
"/sharer/sms/sendSmsCode"
,
"/sharer/open/**"
,
"/sharer/test/**"
,
"/sharer/user/login"
,
"/sharer/product/page/list"
};
@Override
...
...
yanxuan-wx-store-sharer-web/src/main/java/com/netease/yanxuan/wx/store/sharer/web/controller/TestController.java
View file @
fffb8ad9
...
...
@@ -6,13 +6,15 @@
*/
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
web
.
controller
;
import
com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.RealNameAuthenticatedBO
;
import
com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.SmsCodeBO
;
import
com.netease.yanxuan.wx.store.sharer.biz.service.ICommissionOrderService
;
import
com.netease.yanxuan.wx.store.sharer.biz.service.ISmsService
;
import
com.netease.yanxuan.wx.store.sharer.biz.service.IUserService
;
import
com.netease.yanxuan.wx.store.sharer.common.core.Result
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
/**
* @author 刘运星 (liuyunxing01@corp.netease.com)
...
...
@@ -22,9 +24,11 @@ import org.springframework.web.bind.annotation.RestController;
@RequiredArgsConstructor
public
class
TestController
{
private
final
ICommissionOrderService
iCommissionOrderService
;
private
final
IUserService
iUserService
;
private
final
ISmsService
iSmsService
;
/**
*
登录
*
同步订单
*/
@GetMapping
(
"/syncCommissionOrder"
)
public
Result
<
Void
>
syncCommissionOrder
(
@RequestParam
(
"startTime"
)
Long
startTime
,
...
...
@@ -32,4 +36,23 @@ public class TestController {
iCommissionOrderService
.
doCommissionOrderSync
(
startTime
,
endTime
);
return
Result
.
ok
();
}
/**
* 发送短信验证码
*/
@PostMapping
(
"/sendSmsCode"
)
public
Result
<
Boolean
>
sendSmsCode
(
@Validated
@RequestBody
SmsCodeBO
bo
)
{
iSmsService
.
sendSmsCode
(
bo
);
return
Result
.
ok
(
true
);
}
/**
* 实名认证
*/
@PostMapping
(
"/realNameAuthenticated"
)
public
Result
<
Boolean
>
realNameAuthenticated
(
@Validated
@RequestBody
RealNameAuthenticatedBO
bo
)
{
iUserService
.
realNameAuthenticated
(
bo
);
return
Result
.
ok
(
true
);
}
}
\ No newline at end of file
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