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
3d94f0ff
Commit
3d94f0ff
authored
Aug 26, 2022
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序登录判断是否冻结
parent
905a4939
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
AppletServiceImpl.java
...b/service/middleoffice/applet/impl/AppletServiceImpl.java
+8
-6
No files found.
src/main/java/cn/quantgroup/xyqb/service/middleoffice/applet/impl/AppletServiceImpl.java
View file @
3d94f0ff
...
...
@@ -18,6 +18,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
static
cn
.
quantgroup
.
xyqb
.
constant
.
UserConstant
.
USER_ERROR_OR_ENABLE_ERROR
;
/**
* @author :dongjianhua
* @date :Created in 2020/5/27 17:27
...
...
@@ -123,9 +125,9 @@ public class AppletServiceImpl implements IAppletService {
throw
new
AppletException
(
"未找到此用户绑定信息"
,
"0401"
);
}
user
=
userService
.
findById
(
wechatUserInfo
.
getUserId
());
if
(
null
==
user
)
{
log
.
warn
(
"未找到此用户,appName:{} ,openId:{}"
,
appName
,
openId
);
throw
new
AppletException
(
"未找到此用户"
,
"0401"
);
if
(
null
==
user
||
!
user
.
getEnable
()
)
{
log
.
warn
(
"未找到此用户
或冻结
,appName:{} ,openId:{}"
,
appName
,
openId
);
throw
new
AppletException
(
USER_ERROR_OR_ENABLE_ERROR
,
"0401"
);
}
iOauthLoginInfoService
.
addLoginInfo
(
user
,
tenantId
);
...
...
@@ -141,9 +143,9 @@ public class AppletServiceImpl implements IAppletService {
throw
new
AppletException
(
"未找到此用户"
,
"0401"
);
}
user
=
userService
.
findById
(
userId
);
if
(
null
==
user
)
{
log
.
warn
(
"未找到此用户,appName:{} ,openId:{}"
,
appName
,
openId
);
throw
new
AppletException
(
"未找到此用户"
,
"0401"
);
if
(
null
==
user
||
!
user
.
getEnable
()
)
{
log
.
warn
(
"未找到此用户
或冻结
,appName:{} ,openId:{}"
,
appName
,
openId
);
throw
new
AppletException
(
USER_ERROR_OR_ENABLE_ERROR
,
"0401"
);
}
}
...
...
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