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
dd60591e
Commit
dd60591e
authored
Mar 23, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部分渠道免密登陆上报统计--仅限KA--xyqb--用户中心login_super接口
parent
48694821
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
AppController.java
...antgroup/xyqb/controller/external/user/AppController.java
+15
-5
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/user/AppController.java
View file @
dd60591e
...
...
@@ -4,10 +4,7 @@ import cn.quantgroup.xyqb.aspect.accessable.IpValidator;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.entity.Merchant
;
import
cn.quantgroup.xyqb.entity.User
;
import
cn.quantgroup.xyqb.model.AuthBean
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.LoginProperties
;
import
cn.quantgroup.xyqb.model.UserRet
;
import
cn.quantgroup.xyqb.model.*
;
import
cn.quantgroup.xyqb.model.session.LoginInfo
;
import
cn.quantgroup.xyqb.model.session.SessionStruct
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
...
...
@@ -20,6 +17,7 @@ import cn.quantgroup.xyqb.service.user.IUserBtRegisterService;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.IPUtil
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -27,6 +25,9 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Objects
;
import
java.util.Optional
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Random
;
...
...
@@ -192,7 +193,16 @@ public class AppController implements IBaseController {
loginInfo
.
setLoginContext
(
context
);
LOGGER
.
info
(
"第三方用户获取信息登录成功 loginSuper --> loginFrom:{}, phoneNo:{},appChannel:{},channelId:{}"
,
registerFrom
,
phoneNo
,
appChannel
,
channelId
);
/*
* 部分免密渠道登录统计
* 贷款导航(84660);壹账通H5(159384)
*/
Long
_registerFrom
=
Optional
.
ofNullable
(
user
.
getRegisteredFrom
()).
orElse
(
registerFrom
);
if
(
Objects
.
equals
(
_registerFrom
,
84660L
)
||
Objects
.
equals
(
_registerFrom
,
159384L
)){
UserStatistics
statistics
=
new
UserStatistics
(
user
,
null
,
4
,
channelId
);
//增加登陆统计发送
MqUtils
.
sendLoanVest
(
statistics
);
}
return
JsonResult
.
buildSuccessResult
(
""
,
loginInfo
);
}
...
...
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