Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeoFlyApi
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GeoFly
GeoFlyApi
Commits
31c54676
Commit
31c54676
authored
Jul 24, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认登录org
parent
c0c050d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sample/src/main/java/com/dji/sample/manage/service/impl/UserServiceImpl.java
+5
-3
No files found.
sample/src/main/java/com/dji/sample/manage/service/impl/UserServiceImpl.java
View file @
31c54676
...
@@ -94,7 +94,7 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
...
@@ -94,7 +94,7 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
String
orgId
=
loginDTO
.
getOrgId
();
String
orgId
=
loginDTO
.
getOrgId
();
String
orgName
=
loginDTO
.
getOrgName
();
String
orgName
=
loginDTO
.
getOrgName
();
if
(!
StringUtils
.
hasText
(
loginDTO
.
getOrgId
())
&&
!
StringUtils
.
hasText
(
loginDTO
.
getOrgName
()))
{
if
(!
StringUtils
.
hasText
(
loginDTO
.
getOrgId
())
&&
!
StringUtils
.
hasText
(
loginDTO
.
getOrgName
()))
{
orgId
=
"
123456
"
;
orgId
=
"
geoSys
"
;
}
}
// check user
// check user
UserEntity
userEntity
=
this
.
getUserByUsername
(
username
);
UserEntity
userEntity
=
this
.
getUserByUsername
(
username
);
...
@@ -105,8 +105,10 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
...
@@ -105,8 +105,10 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
}
}
// 修改逻辑 跳过web判定
// 修改逻辑 跳过web判定
if
(
flag
!=
UserTypeEnum
.
WEB
.
getVal
())
{
if
(
flag
!=
UserTypeEnum
.
WEB
.
getVal
())
{
if
(
flag
.
intValue
()
!=
userEntity
.
getUserType
().
intValue
())
{
if
(
userEntity
.
getRoleType
()
==
null
||
userEntity
.
getRoleType
()
!=
RoleTypeEnum
.
SYS_ADMIN
.
getVal
()
)
{
return
HttpResultResponse
.
error
(
"The account type does not match."
);
if
(
flag
.
intValue
()
!=
userEntity
.
getUserType
().
intValue
())
{
return
HttpResultResponse
.
error
(
"The account type does not match."
);
}
}
}
}
}
// 密码加密验证
// 密码加密验证
...
...
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