Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
5334667f
Commit
5334667f
authored
Aug 15, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.平台包升级
parent
8ac3e6f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
RegUnitInfoController.java
.../module/tzs/flc/biz/controller/RegUnitInfoController.java
+4
-5
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/RegUnitInfoController.java
View file @
5334667f
...
...
@@ -91,13 +91,12 @@ public class RegUnitInfoController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{tel}/sendTelCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"发送手机号验证码"
,
notes
=
"发送手机号验证码"
)
public
ResponseModel
<
Boolean
>
sendTelCode
(
@PathVariable
(
value
=
"tel"
)
String
tel
)
{
public
ResponseModel
<
Boolean
>
sendTelCode
(
@PathVariable
(
value
=
"tel"
)
String
tel
)
throws
Exception
{
if
(
ValidationUtil
.
isEmpty
(
tel
))
{
throw
new
BadRequest
(
"手机号不能为空"
);
}
try
{
Privilege
.
authClient
.
mobileVerify
(
tel
);
}
catch
(
Exception
e
)
{
Boolean
isReg
=
(
Boolean
)
Privilege
.
authClient
.
mobileVerify
(
tel
).
getResult
();
if
(
isReg
){
throw
new
RuntimeException
(
"该手机号已注册!"
);
}
Boolean
flag
;
...
...
@@ -134,7 +133,7 @@ public class RegUnitInfoController extends BaseController {
@GetMapping
(
value
=
"/{tel}/{code}/verifyTelCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"验证手机号验证码是否成功"
,
notes
=
"验证手机号验证码是否成功"
)
public
ResponseModel
<
Boolean
>
verifyTelCode
(
@PathVariable
(
value
=
"tel"
)
String
tel
,
@PathVariable
(
value
=
"code"
)
String
code
)
{
B
oolean
flag
=
false
;
b
oolean
flag
=
false
;
if
(
ValidationUtil
.
isEmpty
(
tel
)
||
ValidationUtil
.
isEmpty
(
code
))
{
throw
new
BadRequest
(
"参数校验失败."
);
}
...
...
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