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
7e002776
Commit
7e002776
authored
Jul 24, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认登录org
parent
7571fc14
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
sample/src/main/java/com/dji/sample/manage/service/impl/UserServiceImpl.java
+3
-1
No files found.
sample/src/main/java/com/dji/sample/manage/service/impl/UserServiceImpl.java
View file @
7e002776
...
...
@@ -94,7 +94,7 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
String
orgId
=
loginDTO
.
getOrgId
();
String
orgName
=
loginDTO
.
getOrgName
();
if
(!
StringUtils
.
hasText
(
loginDTO
.
getOrgId
())
&&
!
StringUtils
.
hasText
(
loginDTO
.
getOrgName
()))
{
orgId
=
"
123456
"
;
orgId
=
"
geoSys
"
;
}
// check user
UserEntity
userEntity
=
this
.
getUserByUsername
(
username
);
...
...
@@ -105,10 +105,12 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
}
// 修改逻辑 跳过web判定
if
(
flag
!=
UserTypeEnum
.
WEB
.
getVal
())
{
if
(
userEntity
.
getRoleType
()
==
null
||
userEntity
.
getRoleType
()
!=
RoleTypeEnum
.
SYS_ADMIN
.
getVal
()
)
{
if
(
flag
.
intValue
()
!=
userEntity
.
getUserType
().
intValue
())
{
return
HttpResultResponse
.
error
(
"The account type does not match."
);
}
}
}
// 密码加密验证
// if (!password.equals(userEntity.getPassword())) {
if
(!
SecurityUtils
.
matchesPassword
(
password
,
userEntity
.
getPassword
()))
{
...
...
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