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
cde11a22
Commit
cde11a22
authored
May 16, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推客分佣单入库
parent
761efc6b
Pipeline
#75626
passed with stages
in 2 minutes 22 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
TestController.java
...anxuan/wx/store/sharer/web/controller/TestController.java
+8
-3
No files found.
yanxuan-wx-store-sharer-web/src/main/java/com/netease/yanxuan/wx/store/sharer/web/controller/TestController.java
View file @
cde11a22
...
...
@@ -10,8 +10,9 @@ import com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.RealNameAuthenticat
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
com.netease.yanxuan.wx.store.sharer.common.exception.BizException
;
import
com.netease.yanxuan.wx.store.sharer.integration.client.IUserInfoClient
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -24,7 +25,7 @@ import org.springframework.web.bind.annotation.*;
@RequiredArgsConstructor
public
class
TestController
{
private
final
ICommissionOrderService
iCommissionOrderService
;
private
final
IUser
Service
iUserService
;
private
final
IUser
InfoClient
iUserInfoClient
;
private
final
ISmsService
iSmsService
;
/**
...
...
@@ -60,7 +61,10 @@ public class TestController {
*/
@PostMapping
(
"/realNameAuthenticated"
)
public
Result
<
Boolean
>
realNameAuthenticated
(
@Validated
@RequestBody
RealNameAuthenticatedBO
bo
)
{
iUserService
.
realNameAuthenticated
(
bo
);
Boolean
isVerifySuccess
=
iUserInfoClient
.
verifyByIdentityNo
(
bo
.
getUsername
(),
bo
.
getIdCardNumber
());
if
(
null
==
isVerifySuccess
||
!
isVerifySuccess
){
throw
new
BizException
(
"实名认证不通过"
);
}
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