Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
f38f77ce
Commit
f38f77ce
authored
Nov 17, 2021
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册用户接口
parent
5fc79319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
InnerController.java
...tgroup/xyqb/controller/internal/user/InnerController.java
+8
-1
No files found.
src/main/java/cn/quantgroup/xyqb/controller/internal/user/InnerController.java
View file @
f38f77ce
...
@@ -102,6 +102,9 @@ public class InnerController implements IBaseController {
...
@@ -102,6 +102,9 @@ public class InnerController implements IBaseController {
@Autowired
@Autowired
private
ITenantService
tenantService
;
private
ITenantService
tenantService
;
@Autowired
private
IOauthLoginInfoService
iOauthLoginInfoService
;
private
static
final
String
RESET_PWD_TOKEN
=
"ecf75c1f-2ccb-4661-8e4b-2874c0f45a2b"
;
private
static
final
String
RESET_PWD_TOKEN
=
"ecf75c1f-2ccb-4661-8e4b-2874c0f45a2b"
;
private
static
final
String
MODIFY_CONTACT_TOKEN
=
"@qwsdedad131323213w!"
;
private
static
final
String
MODIFY_CONTACT_TOKEN
=
"@qwsdedad131323213w!"
;
...
@@ -289,7 +292,7 @@ public class InnerController implements IBaseController {
...
@@ -289,7 +292,7 @@ public class InnerController implements IBaseController {
*/
*/
@RequestMapping
(
"/user/save"
)
@RequestMapping
(
"/user/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注册用户"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注册用户"
)
public
JsonResult
saveUser
(
String
phoneNo
,
Long
registeredFrom
)
{
public
JsonResult
saveUser
(
String
phoneNo
,
Long
registeredFrom
,
Integer
tenantId
)
{
log
.
info
(
"保存用户,phoneNo:{},registeredFrom:{}"
,
phoneNo
,
registeredFrom
);
log
.
info
(
"保存用户,phoneNo:{},registeredFrom:{}"
,
phoneNo
,
registeredFrom
);
//参数验证
//参数验证
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
...
@@ -311,6 +314,10 @@ public class InnerController implements IBaseController {
...
@@ -311,6 +314,10 @@ public class InnerController implements IBaseController {
}
}
//注册新用户
//注册新用户
user
=
userRegisterService
.
register
(
registeredFrom
,
phoneNo
,
null
,
null
,
0L
,
0L
);
user
=
userRegisterService
.
register
(
registeredFrom
,
phoneNo
,
null
,
null
,
0L
,
0L
);
//校验租户ID tenantId
if
(
tenantId
!=
null
&&
!
tenantId
.
equals
(
0
))
{
iOauthLoginInfoService
.
addLoginInfo
(
user
,
tenantId
);
}
return
JsonResult
.
buildSuccessResult
(
null
,
new
UserRet
(
user
));
return
JsonResult
.
buildSuccessResult
(
null
,
new
UserRet
(
user
));
}
}
...
...
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