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
f535aadd
Commit
f535aadd
authored
Mar 29, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixe注册统计消息重复的bug
parent
c57a4298
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+2
-1
UserController.java
...ntgroup/xyqb/controller/internal/user/UserController.java
+2
-5
MqUtils.java
src/main/java/cn/quantgroup/xyqb/util/MqUtils.java
+1
-1
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
f535aadd
...
...
@@ -185,11 +185,12 @@ public class InnerController implements IBaseController {
}
}
@LogHttpCaller
@RequestMapping
(
"/user/save"
)
public
JsonResult
saveUser
(
String
phoneNo
,
Long
registeredFrom
,
Long
createdAt
,
Long
updatedAt
,
String
password
,
String
uuid
)
{
LOGGER
.
info
(
"保存用户,phoneNo:{},registeredFrom;{},uuid:{}
"
,
phoneNo
,
registeredFrom
,
uuid
);
LOGGER
.
info
(
"保存用户,phoneNo:{},registeredFrom;{},uuid:{}
,createdAt:{},updatedAt:{}"
,
phoneNo
,
registeredFrom
,
uuid
,
createdAt
,
updatedAt
);
//参数验证
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
return
JsonResult
.
buildErrorStateResult
(
"用户手机号不能为空."
,
null
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/UserController.java
View file @
f535aadd
...
...
@@ -198,20 +198,17 @@ public class UserController implements IBaseController {
LOGGER
.
error
(
"用户不存在,或者已经注销,phoneNo:{}"
,
phoneNo
);
return
JsonResult
.
buildErrorStateResult
(
"登录失败"
,
null
);
}
UserStatistics
statistics
=
null
;
JSONObject
qqGdt
=
null
;
if
(
user
==
null
)
{
// Service层会负责发送注册消息到LoanVest
user
=
userRegisterService
.
register
(
phoneNo
,
channelId
,
createdFrom
,
appChannel
,
btRegisterChannelId
,
dimension
);
if
(
user
==
null
)
{
throw
new
UserNotExistException
(
"用户未找到"
);
}
//广点通转化注册 - 发送消息 - 方法内过滤
MqUtils
.
sendRegisterMessageForGdt
(
phoneNo
,
clickId
);
statistics
=
new
UserStatistics
(
user
,
dimension
,
2
,
channelId
);
}
else
{
statistics
=
new
UserStatistics
(
user
,
dimension
,
3
,
channelId
);
}
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
dimension
,
3
,
channelId
);
MqUtils
.
sendLoanVest
(
statistics
);
return
new
JsonResult
(
sessionService
.
createSession
(
channelId
,
createdFrom
,
appChannel
,
user
,
merchant
));
// return createSession(channelId, createdFrom, appChannel, user);
...
...
src/main/java/cn/quantgroup/xyqb/util/MqUtils.java
View file @
f535aadd
...
...
@@ -33,7 +33,7 @@ public class MqUtils {
* 用户注册消息进行广播
* @param message
*/
p
ublic
static
void
sendRegisterMessage
(
UserRegisterMqMessage
message
){
p
rivate
static
void
sendRegisterMessage
(
UserRegisterMqMessage
message
){
try
{
IRegisterMqService
rService
=
ApplicationContextHolder
.
getBean
(
"registerMqService"
);
rService
.
send
(
message
);
...
...
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