Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
751abddf7efa0335f7bb98123b0a0ba5016cdea4
1 parent
954efdc9
用户检测,没有用户的时候自动新增
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
monitor-ui-ctrl/src/main/java/com/ui/ctrl/UserCtrl.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/UserCtrl.java
View file @
751abdd
...
...
@@ -106,7 +106,11 @@ public class UserCtrl {
createDefaultUser
.
setAuthGroup
(
"1,2,"
);
createDefaultUser
.
setMobile
(
"00000000000"
);
userSaveComponent
.
saveUser
(
createDefaultUser
,
session
);
try
{
Thread
.
sleep
(
1000
);
//等1秒
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
//保存之后再查一次
u
=
userAuthLocal
.
getUserByLdapName
(
user
.
getName
());
...
...
Please
register
or
login
to post a comment