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
e6e832e1
Commit
e6e832e1
authored
Nov 11, 2020
by
董建华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册增加签署协议
parent
eaddfac7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
LoginModule.java
...group/xyqb/controller/middleoffice/login/LoginModule.java
+2
-1
BlackHoleRegisteredEventListener.java
...antgroup/xyqb/event/BlackHoleRegisteredEventListener.java
+17
-14
No files found.
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/login/LoginModule.java
View file @
e6e832e1
...
@@ -56,9 +56,10 @@ public class LoginModule implements ILoginModule {
...
@@ -56,9 +56,10 @@ public class LoginModule implements ILoginModule {
VerifyStrategyFactory
.
get
(
type
).
verify
(
user
,
verify
);
VerifyStrategyFactory
.
get
(
type
).
verify
(
user
,
verify
);
LoginProperties
loginProperties
=
LoginProperties
.
builder
()
LoginProperties
loginProperties
=
LoginProperties
.
builder
()
.
createdFrom
(
user
.
getRegisteredFrom
()
)
.
createdFrom
(
1L
)
.
appChannel
(
appChannel
)
.
appChannel
(
appChannel
)
.
channelId
(
channelId
)
.
channelId
(
channelId
)
.
merchantName
(
"xyqb"
)
.
build
();
.
build
();
AuthBean
session
=
sessionService
.
createSession
(
user
,
loginProperties
);
AuthBean
session
=
sessionService
.
createSession
(
user
,
loginProperties
);
return
LoginVo
.
builder
()
return
LoginVo
.
builder
()
...
...
src/main/java/cn/quantgroup/xyqb/event/BlackHoleRegisteredEventListener.java
View file @
e6e832e1
...
@@ -24,7 +24,7 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg
...
@@ -24,7 +24,7 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg
private
String
routingKey
;
private
String
routingKey
;
@Resource
@Resource
private
RabbitTemplate
registeredNotifyBlackHoleRabbitTemplate
;
private
RabbitTemplate
registeredNotifyBlackHoleRabbitTemplate
;
long
[]
templateIds
=
{
8
l
,
280
l
};
@Override
@Override
public
void
onApplicationEvent
(
RegisterEvent
event
)
{
public
void
onApplicationEvent
(
RegisterEvent
event
)
{
UserRegisterParam
userRegisterParam
=
event
.
getUserRegisterParam
();
UserRegisterParam
userRegisterParam
=
event
.
getUserRegisterParam
();
...
@@ -34,18 +34,21 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg
...
@@ -34,18 +34,21 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg
String
dateStr
=
signDate
.
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy年MM月dd日"
));
String
dateStr
=
signDate
.
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy年MM月dd日"
));
int
day
=
signDate
.
getDayOfMonth
();
int
day
=
signDate
.
getDayOfMonth
();
// 信用钱包服务与隐私协议
// 信用钱包服务与隐私协议
long
templateId
=
8
;
for
(
long
id
:
templateIds
)
{
JSONObject
fields
=
new
JSONObject
();
JSONObject
fields
=
new
JSONObject
();
fields
.
put
(
"phoneNo"
,
user
.
getPhoneNo
());
fields
.
put
(
"phoneNo"
,
user
.
getPhoneNo
());
fields
.
put
(
"genarateDateStr"
,
dateStr
);
fields
.
put
(
"genarateDateStr"
,
dateStr
);
fields
.
put
(
"day"
,
day
);
fields
.
put
(
"day"
,
day
);
JSONObject
json
=
new
JSONObject
();
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"userId"
,
user
.
getId
());
json
.
put
(
"userId"
,
user
.
getId
());
json
.
put
(
"mustReal"
,
false
);
json
.
put
(
"mustReal"
,
false
);
json
.
put
(
"templateId"
,
templateId
);
json
.
put
(
"templateId"
,
id
);
json
.
put
(
"fields"
,
fields
);
json
.
put
(
"fields"
,
fields
);
JSONArray
array
=
new
JSONArray
();
JSONArray
array
=
new
JSONArray
();
array
.
add
(
json
);
array
.
add
(
json
);
registeredNotifyBlackHoleRabbitTemplate
.
convertAndSend
(
exchange
,
routingKey
,
array
.
toString
());
registeredNotifyBlackHoleRabbitTemplate
.
convertAndSend
(
exchange
,
routingKey
,
array
.
toString
());
}
}
}
}
}
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