Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agent-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
agent-platform
Commits
16bbdfad
Commit
16bbdfad
authored
Apr 29, 2025
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复测试bug
parent
342afb6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
agent-manager/src/main/java/com/mortals/xhx/busiz/web/H5LoginController.java
...ain/java/com/mortals/xhx/busiz/web/H5LoginController.java
+3
-0
No files found.
agent-manager/src/main/java/com/mortals/xhx/busiz/web/H5LoginController.java
View file @
16bbdfad
...
@@ -127,6 +127,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
...
@@ -127,6 +127,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
// userEntity.setMobile(req.getPhone());
// userEntity.setMobile(req.getPhone());
userEntity
.
setLoginPwd
(
SecurityUtil
.
md5DoubleEncoding
(
"123"
));
userEntity
.
setLoginPwd
(
SecurityUtil
.
md5DoubleEncoding
(
"123"
));
userEntity
.
setUserType
(
2
);
userEntity
.
setUserType
(
2
);
userEntity
.
setRoleIds
(
"2"
);
userEntity
=
userService
.
save
(
userEntity
);
userEntity
=
userService
.
save
(
userEntity
);
}
}
if
(
userEntity
.
getCompanyId
()!=
null
){
if
(
userEntity
.
getCompanyId
()!=
null
){
...
@@ -197,6 +198,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
...
@@ -197,6 +198,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
userEntity
.
setUserType
(
2
);
userEntity
.
setUserType
(
2
);
CompanyEntity
companyEntity
=
companyService
.
getCompanyByH5
(
req
);
CompanyEntity
companyEntity
=
companyService
.
getCompanyByH5
(
req
);
userEntity
.
setCompanyId
(
companyEntity
.
getId
());
userEntity
.
setCompanyId
(
companyEntity
.
getId
());
userEntity
.
setRoleIds
(
"2"
);
userEntity
=
userService
.
save
(
userEntity
);
userEntity
=
userService
.
save
(
userEntity
);
}
else
{
}
else
{
userEntity
.
setPhone
(
req
.
getPhone
());
userEntity
.
setPhone
(
req
.
getPhone
());
...
@@ -212,6 +214,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
...
@@ -212,6 +214,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
//todo 当前用户存在 但是未绑定公司 可绑定
//todo 当前用户存在 但是未绑定公司 可绑定
CompanyEntity
companyEntity
=
companyService
.
getCompanyByH5
(
req
);
CompanyEntity
companyEntity
=
companyService
.
getCompanyByH5
(
req
);
userEntity
.
setCompanyId
(
companyEntity
.
getId
());
userEntity
.
setCompanyId
(
companyEntity
.
getId
());
userEntity
.
setRoleIds
(
"2"
);
userService
.
update
(
userEntity
);
userService
.
update
(
userEntity
);
}
}
//当前用户绑定公司 用户名可与phone绑定
//当前用户绑定公司 用户名可与phone绑定
...
...
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