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
e2a3c11f
Commit
e2a3c11f
authored
Mar 23, 2022
by
李健华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/risk-2022-03-23' into 'master'
登陆需要记录相关日志 See merge request
!51
parents
c2f1f85b
f2fcb6d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
LoginInterceptorAspect.java
...uantgroup/xyqb/aspect/captcha/LoginInterceptorAspect.java
+3
-1
UserController.java
...n/quantgroup/xyqb/controller/external/UserController.java
+2
-0
AppController.java
...antgroup/xyqb/controller/internal/user/AppController.java
+1
-0
No files found.
src/main/java/cn/quantgroup/xyqb/aspect/captcha/LoginInterceptorAspect.java
View file @
e2a3c11f
...
...
@@ -134,7 +134,9 @@ public class LoginInterceptorAspect {
*/
sendEvent
(
UserLoginRegEvent
.
SubEventType
.
user_attempt_login
,
device
,
phone
,
deviceId
,
realIp
,
null
,
tenantId
);
LoginRefuseResult
result
=
verification
(
deviceId
,
phone
,
device
,
tenantId
);
// 调用风控策略逻辑删除
// LoginRefuseResult result = verification(deviceId, phone, device, tenantId);
LoginRefuseResult
result
=
LoginRefuseResult
.
builder
().
isPass
(
Boolean
.
TRUE
).
build
();
Object
loginResult
=
null
;
try
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/UserController.java
View file @
e2a3c11f
...
...
@@ -112,6 +112,7 @@ public class UserController implements IBaseController {
* @return
* @yapi unknown
*/
@LoginInterceptor
@CaptchaFiniteValidator
@RequestMapping
(
"/loginV1"
)
public
JsonResult
loginV1
(
...
...
@@ -186,6 +187,7 @@ public class UserController implements IBaseController {
*
* @yapi http://yapi.quantgroups.com/project/17/interface/api/2066
*/
@LoginInterceptor
@RequestMapping
(
"/login/fast"
)
public
JsonResult
loginFast
(
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
channelId
,
String
appChannel
,
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/AppController.java
View file @
e2a3c11f
...
...
@@ -311,6 +311,7 @@ public class AppController implements IBaseController {
* @return Token和phoneNo
* @yapi http://yapi.quantgroups.com/project/17/interface/api/171
*/
@LoginInterceptor
@IpValidator
@RequestMapping
(
"/login2"
)
@ApiOperation
(
value
=
"免密登陆, 新手机号不自动注册"
,
notes
=
"免密登陆, 新手机号不自动注册"
,
httpMethod
=
"POST"
)
...
...
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