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
12789a83
Commit
12789a83
authored
Aug 01, 2023
by
唐峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
静默异常处理
parent
32bbc944
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
BehaviorInterceptor.java
...n/java/cn/quantgroup/xyqb/filter/BehaviorInterceptor.java
+1
-0
AppletServiceImpl.java
...b/service/middleoffice/applet/impl/AppletServiceImpl.java
+1
-1
PhonePasswordLoginStrategy.java
...uantgroup/xyqb/service/v2/PhonePasswordLoginStrategy.java
+1
-1
SMSDirectJiLoginStrategy.java
.../quantgroup/xyqb/service/v2/SMSDirectJiLoginStrategy.java
+1
-1
No files found.
src/main/java/cn/quantgroup/xyqb/filter/BehaviorInterceptor.java
View file @
12789a83
...
@@ -40,6 +40,7 @@ public class BehaviorInterceptor implements HandlerInterceptor {
...
@@ -40,6 +40,7 @@ public class BehaviorInterceptor implements HandlerInterceptor {
return
true
;
return
true
;
}
}
}
}
String
id
=
request
.
getHeader
(
Constants
.
X_BEHAVIOR_ID
);
String
id
=
request
.
getHeader
(
Constants
.
X_BEHAVIOR_ID
);
if
(
StringUtils
.
isEmpty
(
id
))
{
if
(
StringUtils
.
isEmpty
(
id
))
{
throw
new
BizException
(
BizExceptionEnum
.
UN_EXIT_VERIFY_CODE
);
throw
new
BizException
(
BizExceptionEnum
.
UN_EXIT_VERIFY_CODE
);
...
...
src/main/java/cn/quantgroup/xyqb/service/middleoffice/applet/impl/AppletServiceImpl.java
View file @
12789a83
...
@@ -64,7 +64,7 @@ public class AppletServiceImpl implements IAppletService {
...
@@ -64,7 +64,7 @@ public class AppletServiceImpl implements IAppletService {
public
Long
relevance
(
AppletParamEntry
appletParamEntry
)
{
public
Long
relevance
(
AppletParamEntry
appletParamEntry
)
{
String
appId
=
wechatConfiguration
.
getByAppName
(
appletParamEntry
.
getAppName
()).
getAppId
();
String
appId
=
wechatConfiguration
.
getByAppName
(
appletParamEntry
.
getAppName
()).
getAppId
();
appId
=
StringUtils
.
isEmpty
(
appletParamEntry
.
getAppId
())
?
appId:
appletParamEntry
.
getAppId
();
appId
=
StringUtils
.
isEmpty
(
appletParamEntry
.
getAppId
())
?
appId:
appletParamEntry
.
getAppId
();
if
(!
Objects
.
equals
(
appId
,
appletParamEntry
.
getAppId
()))
{
if
(!
StringUtils
.
isEmpty
(
appletParamEntry
.
getAppId
())
&&
!
Objects
.
equals
(
appId
,
appletParamEntry
.
getAppId
()))
{
throw
new
BizException
(
BizExceptionEnum
.
ERROR_MATCHING_WECHAT_APP_ID
);
throw
new
BizException
(
BizExceptionEnum
.
ERROR_MATCHING_WECHAT_APP_ID
);
}
}
appletParamEntry
.
setAppId
(
appId
);
appletParamEntry
.
setAppId
(
appId
);
...
...
src/main/java/cn/quantgroup/xyqb/service/v2/PhonePasswordLoginStrategy.java
View file @
12789a83
...
@@ -59,7 +59,7 @@ public class PhonePasswordLoginStrategy implements LoginStrategy {
...
@@ -59,7 +59,7 @@ public class PhonePasswordLoginStrategy implements LoginStrategy {
// 向该phoneNo添加错误计数器
// 向该phoneNo添加错误计数器
lockIpv4Service
.
countErrorByPhoneNo
(
phonePasswordLoginParam
.
getPhone
());
lockIpv4Service
.
countErrorByPhoneNo
(
phonePasswordLoginParam
.
getPhone
());
throw
new
BizException
(
BizExceptionEnum
.
UN_EXIT_USER
);
throw
new
Silent
BizException
(
BizExceptionEnum
.
UN_EXIT_USER
);
}
}
// 优先校验新密码加密方式 如果有并且密码校验不通过
// 优先校验新密码加密方式 如果有并且密码校验不通过
...
...
src/main/java/cn/quantgroup/xyqb/service/v2/SMSDirectJiLoginStrategy.java
View file @
12789a83
...
@@ -86,7 +86,7 @@ public class SMSDirectJiLoginStrategy implements LoginStrategy {
...
@@ -86,7 +86,7 @@ public class SMSDirectJiLoginStrategy implements LoginStrategy {
boolean
register
=
user
==
null
;
boolean
register
=
user
==
null
;
if
(
user
!=
null
&&
!
user
.
getEnable
())
{
if
(
user
!=
null
&&
!
user
.
getEnable
())
{
log
.
info
(
"用户不存在,或者已经注销,phoneNo:{}"
,
smsLoginParam
.
getPhone
());
log
.
info
(
"用户不存在,或者已经注销,phoneNo:{}"
,
smsLoginParam
.
getPhone
());
throw
new
BizException
(
BizExceptionEnum
.
ERROR_OR_ENABLE_ERROR
);
throw
new
Silent
BizException
(
BizExceptionEnum
.
ERROR_OR_ENABLE_ERROR
);
}
else
{
}
else
{
//用户用户为空,则注册一个新用户
//用户用户为空,则注册一个新用户
if
(
user
==
null
)
{
if
(
user
==
null
)
{
...
...
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