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
feb433b5
Commit
feb433b5
authored
Jul 17, 2017
by
Java—红包—徐 然
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/20170712
parents
f9875fd3
04227894
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
338 additions
and
27 deletions
+338
-27
pom.xml
pom.xml
+10
-1
LoanVestMQConfig.java
...n/java/cn/quantgroup/xyqb/config/mq/LoanVestMQConfig.java
+106
-0
AppController.java
...antgroup/xyqb/controller/external/user/AppController.java
+13
-2
UserController.java
...ntgroup/xyqb/controller/internal/user/UserController.java
+29
-15
UserStatistics.java
src/main/java/cn/quantgroup/xyqb/model/UserStatistics.java
+29
-0
Jr58ServiceImpl.java
...cn/quantgroup/xyqb/service/jr58/impl/Jr58ServiceImpl.java
+5
-1
IVestService.java
...main/java/cn/quantgroup/xyqb/service/mq/IVestService.java
+11
-0
LoanVestMQServiceImpl.java
...uantgroup/xyqb/service/mq/Impl/LoanVestMQServiceImpl.java
+59
-0
IUserService.java
...in/java/cn/quantgroup/xyqb/service/user/IUserService.java
+1
-1
UserServiceImpl.java
...cn/quantgroup/xyqb/service/user/impl/UserServiceImpl.java
+16
-3
JR58GzipUtil.java
src/main/java/cn/quantgroup/xyqb/util/JR58GzipUtil.java
+1
-1
MqUtils.java
src/main/java/cn/quantgroup/xyqb/util/MqUtils.java
+25
-0
xyqb.properties
src/main/resources/config/dev/xyqb.properties
+11
-1
xyqb.properties
src/main/resources/config/release01/xyqb.properties
+11
-1
xyqb.properties
src/main/resources/config/test/xyqb.properties
+11
-1
No files found.
pom.xml
View file @
feb433b5
...
@@ -31,7 +31,16 @@
...
@@ -31,7 +31,16 @@
<artifactId>
gson
</artifactId>
<artifactId>
gson
</artifactId>
<version>
2.3.1
</version>
<version>
2.3.1
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.rabbitmq
</groupId>
<artifactId>
amqp-client
</artifactId>
<version>
3.6.2
</version>
</dependency>
<dependency>
<groupId>
org.springframework.amqp
</groupId>
<artifactId>
spring-rabbit
</artifactId>
<version>
1.4.6.RELEASE
</version>
</dependency>
<dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<artifactId>
fastjson
</artifactId>
...
...
src/main/java/cn/quantgroup/xyqb/config/mq/LoanVestMQConfig.java
0 → 100644
View file @
feb433b5
package
cn
.
quantgroup
.
xyqb
.
config
.
mq
;
import
cn.quantgroup.xyqb.service.mq.IVestService
;
import
org.springframework.amqp.core.AcknowledgeMode
;
import
org.springframework.amqp.core.AmqpAdmin
;
import
org.springframework.amqp.core.Binding
;
import
org.springframework.amqp.core.BindingBuilder
;
import
org.springframework.amqp.core.FanoutExchange
;
import
org.springframework.amqp.core.Queue
;
import
org.springframework.amqp.rabbit.connection.CachingConnectionFactory
;
import
org.springframework.amqp.rabbit.connection.ConnectionFactory
;
import
org.springframework.amqp.rabbit.core.RabbitAdmin
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer
;
import
org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* //马甲包 xuran
*/
@Configuration
public
class
LoanVestMQConfig
{
@Value
(
"${loanvest.rabbitmq.queue}"
)
private
String
queueName
;
@Value
(
"${loanvest.rabbitmq.exchange}"
)
private
String
loanVestExchange
;
@Value
(
"${loanvest.rabbitmq.connection.host}"
)
private
String
host
;
@Value
(
"${loanvest.rabbitmq.connection.port}"
)
private
Integer
port
;
@Value
(
"${loanvest.rabbitmq.connection.user}"
)
private
String
user
;
@Value
(
"${loanvest.rabbitmq.connection.password}"
)
private
String
password
;
@Value
(
"${loanvest.rabbitmq.connection.virtual-host}"
)
private
String
virtualHost
;
//@Value("${loanvest.rabbitmq.stateMsgQueue}")
//private String stateQueueName;
@Bean
(
name
=
"vestFactory"
)
public
ConnectionFactory
vestFactory
()
{
CachingConnectionFactory
connectionFactory
=
new
CachingConnectionFactory
(
host
,
port
);
connectionFactory
.
setChannelCacheSize
(
1024
);
connectionFactory
.
setCacheMode
(
CachingConnectionFactory
.
CacheMode
.
CONNECTION
);
connectionFactory
.
setChannelCacheSize
(
180
*
1000
);
connectionFactory
.
setConnectionCacheSize
(
1024
);
connectionFactory
.
setUsername
(
user
);
connectionFactory
.
setPassword
(
password
);
connectionFactory
.
setVirtualHost
(
virtualHost
);
connectionFactory
.
setPublisherReturns
(
false
);
connectionFactory
.
setPublisherConfirms
(
false
);
return
connectionFactory
;
}
@Bean
(
name
=
"loanVestAmqpAdmin"
)
public
AmqpAdmin
loanVestAdmin
(
@Qualifier
(
"vestFactory"
)
ConnectionFactory
vestFactory
)
{
return
new
RabbitAdmin
(
vestFactory
);
}
@Bean
(
name
=
"loanVestExchange"
)
public
FanoutExchange
loanVestExchange
()
{
return
new
FanoutExchange
(
loanVestExchange
);
}
@Bean
(
name
=
"loanVestQueue"
)
public
Queue
loanVestQueue
()
{
return
new
Queue
(
queueName
);
}
@Bean
(
name
=
"loanVestBinding"
)
public
Binding
bindingLoanVest
(
@Qualifier
(
"loanVestAmqpAdmin"
)
AmqpAdmin
loanVestAdmin
,
@Qualifier
(
"loanVestQueue"
)
Queue
loanVestQueue
,
@Qualifier
(
"loanVestExchange"
)
FanoutExchange
loanVestExchange
)
{
Binding
binding
=
BindingBuilder
.
bind
(
loanVestQueue
).
to
(
loanVestExchange
);
loanVestAdmin
.
declareBinding
(
binding
);
return
binding
;
}
@Bean
(
name
=
"loanVestRabbitTemplate"
)
public
RabbitTemplate
loanVestTemplate
(
@Qualifier
(
"vestFactory"
)
ConnectionFactory
vestFactory
)
{
RabbitTemplate
template
=
new
RabbitTemplate
(
vestFactory
);
template
.
setExchange
(
loanVestExchange
);
return
template
;
}
//@Bean(name = "loanVestMsgQueue")
//public Queue loanStateMsgQueue() {
// return new Queue(stateQueueName);
//}
//@Bean(name = "loanVestListenerContainer")
//public SimpleMessageListenerContainer loanVestSimpleMessageListenerContainer(@Qualifier("loanVestMQService") IVestService vestService, @Qualifier("vestFactory") ConnectionFactory vestFactory, @Qualifier("loanVestMsgQueue")Queue loanVestMsgQueue) {
// SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
// container.setConnectionFactory(vestFactory);
// container.setQueues(loanVestMsgQueue);
// container.setAcknowledgeMode(AcknowledgeMode.NONE);
// container.setMessageListener(new MessageListenerAdapter(vestService));
// container.start();
// return container;
//
//}
}
src/main/java/cn/quantgroup/xyqb/controller/external/user/AppController.java
View file @
feb433b5
...
@@ -21,6 +21,7 @@ import cn.quantgroup.xyqb.service.user.IUserBtRegisterService;
...
@@ -21,6 +21,7 @@ import cn.quantgroup.xyqb.service.user.IUserBtRegisterService;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.IPUtil
;
import
cn.quantgroup.xyqb.util.IPUtil
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -73,7 +74,7 @@ public class AppController implements IBaseController {
...
@@ -73,7 +74,7 @@ public class AppController implements IBaseController {
String
phoneNo
,
String
phoneNo
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
registerFrom
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
registerFrom
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
channelId
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
channelId
,
String
idNo
,
String
name
,
String
key
,
@RequestParam
(
required
=
false
,
defaultValue
=
""
)
String
appChannel
,
@RequestParam
(
required
=
false
)
Long
btRegisterChannelId
,
HttpServletRequest
request
String
idNo
,
String
name
,
String
key
,
@RequestParam
(
required
=
false
,
defaultValue
=
""
)
String
appChannel
,
@RequestParam
(
required
=
false
)
Long
btRegisterChannelId
,
HttpServletRequest
request
)
{
)
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
return
JsonResult
.
buildErrorStateResult
(
USER_ERROR_OR_PASSWORD_ERROR
,
null
);
return
JsonResult
.
buildErrorStateResult
(
USER_ERROR_OR_PASSWORD_ERROR
,
null
);
...
@@ -84,6 +85,7 @@ public class AppController implements IBaseController {
...
@@ -84,6 +85,7 @@ public class AppController implements IBaseController {
User
user
=
userService
.
findByPhoneInDb
(
phoneNo
);
User
user
=
userService
.
findByPhoneInDb
(
phoneNo
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
user
=
register
(
registerFrom
,
phoneNo
,
idNo
,
name
,
channelId
,
btRegisterChannelId
);
user
=
register
(
registerFrom
,
phoneNo
,
idNo
,
name
,
channelId
,
btRegisterChannelId
);
}
}
if
(
user
==
null
)
{
if
(
user
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
USER_ERROR_OR_PASSWORD_ERROR
,
null
);
return
JsonResult
.
buildErrorStateResult
(
USER_ERROR_OR_PASSWORD_ERROR
,
null
);
...
@@ -105,6 +107,9 @@ public class AppController implements IBaseController {
...
@@ -105,6 +107,9 @@ public class AppController implements IBaseController {
bean
.
setToken
(
sessionStruct
.
getSid
());
bean
.
setToken
(
sessionStruct
.
getSid
());
bean
.
setPhoneNo
(
phoneNo
);
bean
.
setPhoneNo
(
phoneNo
);
LOGGER
.
info
(
"第三方用户登录成功, loginFrom:{}, phoneNo:{},appChannel:{}"
,
registerFrom
,
phoneNo
,
appChannel
);
LOGGER
.
info
(
"第三方用户登录成功, loginFrom:{}, phoneNo:{},appChannel:{}"
,
registerFrom
,
phoneNo
,
appChannel
);
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
null
,
4
,
channelId
);
MqUtils
.
sendLoanVest
(
statistics
);
return
new
JsonResult
(
bean
);
return
new
JsonResult
(
bean
);
}
}
...
@@ -157,7 +162,11 @@ public class AppController implements IBaseController {
...
@@ -157,7 +162,11 @@ public class AppController implements IBaseController {
loginInfo
.
setLoginContext
(
context
);
loginInfo
.
setLoginContext
(
context
);
LOGGER
.
info
(
"第三方用户获取信息登录成功, loginFrom:{}, phoneNo:{},appChannel:{}"
,
registerFrom
,
phoneNo
,
appChannel
);
LOGGER
.
info
(
"第三方用户获取信息登录成功, loginFrom:{}, phoneNo:{},appChannel:{}"
,
registerFrom
,
phoneNo
,
appChannel
);
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
null
,
4
,
channelId
);
MqUtils
.
sendLoanVest
(
statistics
);
return
JsonResult
.
buildSuccessResult
(
""
,
loginInfo
);
return
JsonResult
.
buildSuccessResult
(
""
,
loginInfo
);
}
}
/**
/**
...
@@ -240,7 +249,9 @@ public class AppController implements IBaseController {
...
@@ -240,7 +249,9 @@ public class AppController implements IBaseController {
LOGGER
.
error
(
"保存 UserDetail 出现异常"
,
e
);
LOGGER
.
error
(
"保存 UserDetail 出现异常"
,
e
);
}
}
}
}
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
null
,
2
,
channelId
);
MqUtils
.
sendLoanVest
(
statistics
);
return
user
;
return
user
;
}
}
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/UserController.java
View file @
feb433b5
...
@@ -9,12 +9,14 @@ import cn.quantgroup.xyqb.entity.WechatUserInfo;
...
@@ -9,12 +9,14 @@ import cn.quantgroup.xyqb.entity.WechatUserInfo;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.exception.UserNotExistException
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.UserModel
;
import
cn.quantgroup.xyqb.model.UserModel
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.service.merchant.IMerchantService
;
import
cn.quantgroup.xyqb.service.merchant.IMerchantService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.session.ISessionService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.service.wechat.IWechatService
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
...
@@ -74,15 +76,16 @@ public class UserController implements IBaseController {
...
@@ -74,15 +76,16 @@ public class UserController implements IBaseController {
public
JsonResult
login
(
public
JsonResult
login
(
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
channelId
,
String
appChannel
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
channelId
,
String
appChannel
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
createdFrom
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
createdFrom
,
@RequestParam
(
required
=
false
,
defaultValue
=
""
)
String
userId
,
String
key
,
HttpServletRequest
request
,
String
openId
)
{
@RequestParam
(
required
=
false
,
defaultValue
=
""
)
String
userId
,
String
key
,
HttpServletRequest
request
,
String
openId
,
@RequestParam
(
required
=
false
)
String
dimension
)
{
Merchant
merchant
=
merchantService
.
findMerchantByName
(
key
);
Merchant
merchant
=
merchantService
.
findMerchantByName
(
key
);
if
(
merchant
==
null
)
{
if
(
merchant
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
"未知的连接"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"未知的连接"
,
null
);
}
}
if
(!
StringUtils
.
isEmpty
(
userId
)
&&
userId
.
length
()
>
10
)
{
if
(!
StringUtils
.
isEmpty
(
userId
)
&&
userId
.
length
()
>
10
)
{
return
loginWithUserId
(
channelId
,
appChannel
,
createdFrom
,
userId
,
merchant
);
return
loginWithUserId
(
channelId
,
appChannel
,
createdFrom
,
userId
,
merchant
,
dimension
);
}
else
{
}
else
{
return
loginWithHttpBasic
(
channelId
,
appChannel
,
createdFrom
,
merchant
,
request
,
openId
);
return
loginWithHttpBasic
(
channelId
,
appChannel
,
createdFrom
,
merchant
,
request
,
openId
,
dimension
);
}
}
}
}
...
@@ -94,7 +97,7 @@ public class UserController implements IBaseController {
...
@@ -94,7 +97,7 @@ public class UserController implements IBaseController {
@RequestMapping
(
"/login/fast"
)
@RequestMapping
(
"/login/fast"
)
public
JsonResult
loginFast
(
public
JsonResult
loginFast
(
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
channelId
,
String
appChannel
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
channelId
,
String
appChannel
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
createdFrom
,
String
key
,
@RequestParam
(
required
=
false
)
Long
btRegisterChannelId
,
HttpServletRequest
request
)
{
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Long
createdFrom
,
String
key
,
@RequestParam
(
required
=
false
)
Long
btRegisterChannelId
,
@RequestParam
(
required
=
false
)
String
dimension
,
HttpServletRequest
request
)
{
Map
<
String
,
JsonResult
>
validMap
=
getHeaderParam
(
request
);
Map
<
String
,
JsonResult
>
validMap
=
getHeaderParam
(
request
);
if
(
null
!=
validMap
.
get
(
"fail"
))
{
if
(
null
!=
validMap
.
get
(
"fail"
))
{
return
validMap
.
get
(
"fail"
);
return
validMap
.
get
(
"fail"
);
...
@@ -110,16 +113,19 @@ public class UserController implements IBaseController {
...
@@ -110,16 +113,19 @@ public class UserController implements IBaseController {
return
JsonResult
.
buildErrorStateResult
(
"登录失败"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"登录失败"
,
null
);
}
}
if
(
user
==
null
)
{
if
(
user
==
null
)
{
user
=
registerFastWhenLogin
(
phoneNo
,
channelId
,
createdFrom
,
appChannel
,
btRegisterChannelId
);
user
=
registerFastWhenLogin
(
phoneNo
,
channelId
,
createdFrom
,
appChannel
,
btRegisterChannelId
,
dimension
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
throw
new
UserNotExistException
(
"用户未找到"
);
throw
new
UserNotExistException
(
"用户未找到"
);
}
}
}
}
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
dimension
,
3
,
channelId
);
MqUtils
.
sendLoanVest
(
statistics
);
return
new
JsonResult
(
sessionService
.
createSession
(
channelId
,
createdFrom
,
appChannel
,
user
,
merchant
));
return
new
JsonResult
(
sessionService
.
createSession
(
channelId
,
createdFrom
,
appChannel
,
user
,
merchant
));
// return createSession(channelId, createdFrom, appChannel, user);
// return createSession(channelId, createdFrom, appChannel, user);
}
}
private
User
registerFastWhenLogin
(
String
phoneNo
,
Long
channelId
,
Long
registerFrom
,
String
appChannel
,
Long
btRegisterChannelId
)
{
private
User
registerFastWhenLogin
(
String
phoneNo
,
Long
channelId
,
Long
registerFrom
,
String
appChannel
,
Long
btRegisterChannelId
,
String
dimension
)
{
String
password
=
genRandomPwd
();
String
password
=
genRandomPwd
();
LOGGER
.
info
(
"用户快速注册, phoneNo:{}, verificationCode:{}, channelId:{}, registerFrom:{},appChannel:{},btRegisterChannelId"
,
phoneNo
,
channelId
,
registerFrom
,
appChannel
,
btRegisterChannelId
);
LOGGER
.
info
(
"用户快速注册, phoneNo:{}, verificationCode:{}, channelId:{}, registerFrom:{},appChannel:{},btRegisterChannelId"
,
phoneNo
,
channelId
,
registerFrom
,
appChannel
,
btRegisterChannelId
);
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
...
@@ -131,10 +137,12 @@ public class UserController implements IBaseController {
...
@@ -131,10 +137,12 @@ public class UserController implements IBaseController {
}
}
if
(
channelId
==
222L
)
{
if
(
channelId
==
222L
)
{
registerFrom
=
222L
;
registerFrom
=
222L
;
}
}
User
user
=
userService
.
registerAndReturn
(
phoneNo
,
password
,
registerFrom
,
btRegisterChannelId
);
LOGGER
.
info
(
"用户快速注册成功, registerFrom:{}, phoneNo:{}"
,
registerFrom
,
phoneNo
);
LOGGER
.
info
(
"用户快速注册成功, registerFrom:{}, phoneNo:{}"
,
registerFrom
,
phoneNo
);
UserStatistics
statistics
=
new
UserStatistics
(
user
,
dimension
,
2
,
channelId
);
return
userService
.
registerAndReturn
(
phoneNo
,
password
,
registerFrom
,
btRegisterChannelId
);
MqUtils
.
sendLoanVest
(
statistics
);
return
user
;
}
}
/**
/**
...
@@ -190,7 +198,7 @@ public class UserController implements IBaseController {
...
@@ -190,7 +198,7 @@ public class UserController implements IBaseController {
@RequestMapping
(
"/register/fast"
)
@RequestMapping
(
"/register/fast"
)
public
JsonResult
registerFast
(
@RequestParam
String
phoneNo
,
@RequestParam
String
verificationCode
,
@RequestParam
(
required
=
false
)
Long
channelId
,
public
JsonResult
registerFast
(
@RequestParam
String
phoneNo
,
@RequestParam
String
verificationCode
,
@RequestParam
(
required
=
false
)
Long
channelId
,
@RequestParam
(
required
=
false
)
Long
registerFrom
,
@RequestParam
(
required
=
false
,
defaultValue
=
""
)
String
appChannel
,
@RequestParam
(
required
=
false
)
Long
registerFrom
,
@RequestParam
(
required
=
false
,
defaultValue
=
""
)
String
appChannel
,
@RequestParam
(
required
=
false
)
Long
btRegisterChannelId
)
{
@RequestParam
(
required
=
false
)
Long
btRegisterChannelId
,
@RequestParam
(
required
=
false
)
String
dimension
)
{
String
password
=
genRandomPwd
();
String
password
=
genRandomPwd
();
LOGGER
.
info
(
"用户快速注册, phoneNo:{}, verificationCode:{}, channelId:{}, registerFrom:{},appChannel:{}"
,
phoneNo
,
verificationCode
,
channelId
,
registerFrom
,
appChannel
);
LOGGER
.
info
(
"用户快速注册, phoneNo:{}, verificationCode:{}, channelId:{}, registerFrom:{},appChannel:{}"
,
phoneNo
,
verificationCode
,
channelId
,
registerFrom
,
appChannel
);
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
...
@@ -216,7 +224,7 @@ public class UserController implements IBaseController {
...
@@ -216,7 +224,7 @@ public class UserController implements IBaseController {
LOGGER
.
info
(
"用户快速注册失败,短信验证码错误, registerFrom:{}, phoneNo:{}, verificationCode:{}"
,
registerFrom
,
phoneNo
,
verificationCode
);
LOGGER
.
info
(
"用户快速注册失败,短信验证码错误, registerFrom:{}, phoneNo:{}, verificationCode:{}"
,
registerFrom
,
phoneNo
,
verificationCode
);
return
JsonResult
.
buildErrorStateResult
(
"短信验证码错误"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"短信验证码错误"
,
null
);
}
}
if
(!
userService
.
register
(
phoneNo
,
password
,
registerFrom
,
getIp
(),
channelId
,
btRegisterChannelId
))
{
if
(!
userService
.
register
(
phoneNo
,
password
,
registerFrom
,
getIp
(),
channelId
,
btRegisterChannelId
,
dimension
))
{
LOGGER
.
info
(
"用户快速注册失败,请稍后重试, registerFrom:{}, phoneNo:{}"
,
registerFrom
,
phoneNo
);
LOGGER
.
info
(
"用户快速注册失败,请稍后重试, registerFrom:{}, phoneNo:{}"
,
registerFrom
,
phoneNo
);
return
JsonResult
.
buildErrorStateResult
(
"注册失败,请稍后重试"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"注册失败,请稍后重试"
,
null
);
}
}
...
@@ -240,7 +248,7 @@ public class UserController implements IBaseController {
...
@@ -240,7 +248,7 @@ public class UserController implements IBaseController {
public
JsonResult
register
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
,
public
JsonResult
register
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
,
@RequestParam
String
verificationCode
,
@RequestParam
(
required
=
false
)
Long
channelId
,
@RequestParam
String
verificationCode
,
@RequestParam
(
required
=
false
)
Long
channelId
,
@RequestParam
(
required
=
false
)
Long
registerFrom
,
@RequestParam
(
required
=
false
)
Long
registerFrom
,
@RequestParam
(
required
=
false
)
Long
btRegisterChannelId
)
{
@RequestParam
(
required
=
false
)
Long
btRegisterChannelId
,
@RequestParam
(
required
=
false
)
String
dimension
)
{
LOGGER
.
info
(
"用户注册, phoneNo:{}, verificationCode:{}, channelId:{}, registerFrom:{},btRegisterChannelId:{}"
,
phoneNo
,
verificationCode
,
channelId
,
registerFrom
,
btRegisterChannelId
);
LOGGER
.
info
(
"用户注册, phoneNo:{}, verificationCode:{}, channelId:{}, registerFrom:{},btRegisterChannelId:{}"
,
phoneNo
,
verificationCode
,
channelId
,
registerFrom
,
btRegisterChannelId
);
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
LOGGER
.
info
(
"用户注册失败,手机号错误, registerFrom:{}, phoneNo:{}"
,
registerFrom
,
phoneNo
);
LOGGER
.
info
(
"用户注册失败,手机号错误, registerFrom:{}, phoneNo:{}"
,
registerFrom
,
phoneNo
);
...
@@ -265,7 +273,7 @@ public class UserController implements IBaseController {
...
@@ -265,7 +273,7 @@ public class UserController implements IBaseController {
LOGGER
.
info
(
"用户注册失败,短信验证码错误, registerFrom:{}, phoneNo:{}, verificationCode:{}"
,
registerFrom
,
phoneNo
,
verificationCode
);
LOGGER
.
info
(
"用户注册失败,短信验证码错误, registerFrom:{}, phoneNo:{}, verificationCode:{}"
,
registerFrom
,
phoneNo
,
verificationCode
);
return
JsonResult
.
buildErrorStateResult
(
"短信验证码错误"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"短信验证码错误"
,
null
);
}
}
if
(!
userService
.
register
(
phoneNo
,
password
,
registerFrom
,
getIp
(),
channelId
,
btRegisterChannelId
))
{
if
(!
userService
.
register
(
phoneNo
,
password
,
registerFrom
,
getIp
(),
channelId
,
btRegisterChannelId
,
dimension
))
{
LOGGER
.
info
(
"用户快速注册失败,请稍后重试, registerFrom:{}, phoneNo:{}"
,
registerFrom
,
phoneNo
);
LOGGER
.
info
(
"用户快速注册失败,请稍后重试, registerFrom:{}, phoneNo:{}"
,
registerFrom
,
phoneNo
);
return
JsonResult
.
buildErrorStateResult
(
"注册失败,请稍后重试"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"注册失败,请稍后重试"
,
null
);
}
}
...
@@ -398,11 +406,14 @@ public class UserController implements IBaseController {
...
@@ -398,11 +406,14 @@ public class UserController implements IBaseController {
}
}
private
JsonResult
loginWithHttpBasic
(
Long
channelId
,
String
appChannel
,
Long
createdFrom
,
Merchant
merchant
,
HttpServletRequest
request
,
String
openId
)
{
private
JsonResult
loginWithHttpBasic
(
Long
channelId
,
String
appChannel
,
Long
createdFrom
,
Merchant
merchant
,
HttpServletRequest
request
,
String
openId
,
String
dimension
)
{
User
user
=
verificateUserNameAndPassword
(
request
,
openId
);
User
user
=
verificateUserNameAndPassword
(
request
,
openId
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
"用户名或密码不正确"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"用户名或密码不正确"
,
null
);
}
}
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
dimension
,
1
,
channelId
);
MqUtils
.
sendLoanVest
(
statistics
);
return
new
JsonResult
(
sessionService
.
createSession
(
channelId
,
createdFrom
,
appChannel
,
user
,
merchant
));
return
new
JsonResult
(
sessionService
.
createSession
(
channelId
,
createdFrom
,
appChannel
,
user
,
merchant
));
}
}
...
@@ -440,11 +451,14 @@ public class UserController implements IBaseController {
...
@@ -440,11 +451,14 @@ public class UserController implements IBaseController {
return
StringUtils
.
defaultString
(
targetPassword
,
""
).
equals
(
PasswordUtil
.
MD5
(
paramPass
.
toLowerCase
()
+
pwdSalt
));
return
StringUtils
.
defaultString
(
targetPassword
,
""
).
equals
(
PasswordUtil
.
MD5
(
paramPass
.
toLowerCase
()
+
pwdSalt
));
}
}
private
JsonResult
loginWithUserId
(
Long
channelId
,
String
appChannel
,
Long
createdFrom
,
String
userId
,
Merchant
merchant
)
{
private
JsonResult
loginWithUserId
(
Long
channelId
,
String
appChannel
,
Long
createdFrom
,
String
userId
,
Merchant
merchant
,
String
dimension
)
{
//查询用户,存在则保存用户session信息,userId为uuid
//查询用户,存在则保存用户session信息,userId为uuid
User
user
=
userService
.
findByUuidInDb
(
userId
);
User
user
=
userService
.
findByUuidInDb
(
userId
);
//用户信息存在,更新session中的最后访问时间,重新写入缓存.
//用户信息存在,更新session中的最后访问时间,重新写入缓存.
if
(
null
!=
user
||
!
user
.
getEnable
())
{
if
(
null
!=
user
||
!
user
.
getEnable
())
{
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
dimension
,
1
,
channelId
);
MqUtils
.
sendLoanVest
(
statistics
);
return
new
JsonResult
(
sessionService
.
createSession
(
channelId
,
createdFrom
,
appChannel
,
user
,
merchant
));
return
new
JsonResult
(
sessionService
.
createSession
(
channelId
,
createdFrom
,
appChannel
,
user
,
merchant
));
}
else
{
}
else
{
return
JsonResult
.
buildErrorStateResult
(
"登录失败"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"登录失败"
,
null
);
...
...
src/main/java/cn/quantgroup/xyqb/model/UserStatistics.java
0 → 100644
View file @
feb433b5
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.xyqb.entity.User
;
import
lombok.Data
;
/**
* Created by xuran on 2017/6/23.
* 用户统计使用
*/
@Data
public
class
UserStatistics
{
private
String
uuid
;
private
Long
registerFrom
;
private
String
dimension
;
private
int
action
;
//登录0,注册1,快捷登录2,免密登录3
private
Long
channel
;
public
UserStatistics
()
{
}
public
UserStatistics
(
User
user
,
String
dimension
,
int
action
,
Long
channel
)
{
this
.
uuid
=
user
.
getUuid
();
this
.
registerFrom
=
user
.
getRegisteredFrom
();
this
.
action
=
action
;
this
.
dimension
=
dimension
;
this
.
channel
=
channel
;
}
}
src/main/java/cn/quantgroup/xyqb/service/jr58/impl/Jr58ServiceImpl.java
View file @
feb433b5
...
@@ -6,6 +6,7 @@ import cn.quantgroup.xyqb.entity.UserDetail;
...
@@ -6,6 +6,7 @@ import cn.quantgroup.xyqb.entity.UserDetail;
import
cn.quantgroup.xyqb.entity.UserJr58
;
import
cn.quantgroup.xyqb.entity.UserJr58
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdType
;
import
cn.quantgroup.xyqb.model.IdType
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.model.jr58.Jr58Authorization
;
import
cn.quantgroup.xyqb.model.jr58.Jr58Authorization
;
import
cn.quantgroup.xyqb.model.jr58.Jr58RegisterParam
;
import
cn.quantgroup.xyqb.model.jr58.Jr58RegisterParam
;
import
cn.quantgroup.xyqb.model.jr58.Jr58RegisterResult
;
import
cn.quantgroup.xyqb.model.jr58.Jr58RegisterResult
;
...
@@ -17,6 +18,7 @@ import cn.quantgroup.xyqb.service.http.IHttpService;
...
@@ -17,6 +18,7 @@ import cn.quantgroup.xyqb.service.http.IHttpService;
import
cn.quantgroup.xyqb.service.jr58.Jr58Service
;
import
cn.quantgroup.xyqb.service.jr58.Jr58Service
;
import
cn.quantgroup.xyqb.service.user.ILkbUserService
;
import
cn.quantgroup.xyqb.service.user.ILkbUserService
;
import
cn.quantgroup.xyqb.util.GZipUtil
;
import
cn.quantgroup.xyqb.util.GZipUtil
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.ImmutableMap
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -106,7 +108,9 @@ public class Jr58ServiceImpl implements Jr58Service {
...
@@ -106,7 +108,9 @@ public class Jr58ServiceImpl implements Jr58Service {
LOGGER
.
info
(
"Save UserJr58:{}"
,
user
.
getId
());
LOGGER
.
info
(
"Save UserJr58:{}"
,
user
.
getId
());
this
.
saveUserJr58
(
param
,
user
.
getId
());
this
.
saveUserJr58
(
param
,
user
.
getId
());
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
null
,
2
,
user
.
getRegisteredFrom
());
MqUtils
.
sendLoanVest
(
statistics
);
LOGGER
.
info
(
"用户注册成功, registerFrom:{}, phoneNo:{}"
,
Constants
.
Channel
.
JR58
,
param
.
getPhone
());
LOGGER
.
info
(
"用户注册成功, registerFrom:{}, phoneNo:{}"
,
Constants
.
Channel
.
JR58
,
param
.
getPhone
());
return
uuid
;
return
uuid
;
}
}
...
...
src/main/java/cn/quantgroup/xyqb/service/mq/IVestService.java
0 → 100644
View file @
feb433b5
package
cn
.
quantgroup
.
xyqb
.
service
.
mq
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
/**
* Created by xuran on 2017/6/21.
* 马甲包
*/
public
interface
IVestService
{
void
send
(
UserStatistics
message
);
}
src/main/java/cn/quantgroup/xyqb/service/mq/Impl/LoanVestMQServiceImpl.java
0 → 100644
View file @
feb433b5
package
cn
.
quantgroup
.
xyqb
.
service
.
mq
.
Impl
;
import
cn.quantgroup.xyqb.Constants
;;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.service.mq.IVestService
;
import
com.alibaba.fastjson.JSONObject
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.amqp.core.Queue
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
/**
* Created by xuran on 2017/6/21.
* 用户统计信息
*/
@Service
(
"loanVestMQService"
)
public
class
LoanVestMQServiceImpl
implements
IVestService
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
LoanVestMQServiceImpl
.
class
);
@Autowired
@Qualifier
(
value
=
"loanVestRabbitTemplate"
)
RabbitTemplate
loanVestRabbitTemplate
;
@Autowired
@Qualifier
(
value
=
"loanVestQueue"
)
Queue
loanVestQueue
;
/**
* 发送用登陆统计信息
* @param message 订单信息
*/
@Async
public
void
send
(
UserStatistics
message
){
if
(
null
==
message
){
LOGGER
.
error
(
"用登陆统计消息不能为空"
);
}
LOGGER
.
info
(
"用登陆统计发送,message={}"
,
message
);
String
msg
=
JSONObject
.
toJSONString
(
message
);
loanVestRabbitTemplate
.
convertAndSend
(
"statistics-user"
,
msg
);
LOGGER
.
info
(
"用登陆统计成功,message={}"
,
msg
);
}
}
src/main/java/cn/quantgroup/xyqb/service/user/IUserService.java
View file @
feb433b5
...
@@ -32,7 +32,7 @@ public interface IUserService {
...
@@ -32,7 +32,7 @@ public interface IUserService {
User
findById
(
Long
userId
);
User
findById
(
Long
userId
);
boolean
register
(
String
phoneNo
,
String
password
,
Long
registerFrom
,
String
ip
,
Long
channelId
,
Long
btRegisterChannelId
);
boolean
register
(
String
phoneNo
,
String
password
,
Long
registerFrom
,
String
ip
,
Long
channelId
,
Long
btRegisterChannelId
,
String
dimension
);
List
<
User
>
findByPhones
(
List
<
String
>
phones
);
List
<
User
>
findByPhones
(
List
<
String
>
phones
);
User
registerAndReturn
(
String
phoneNo
,
String
password
,
Long
registerFrom
,
Long
btRegisterChannelId
);
User
registerAndReturn
(
String
phoneNo
,
String
password
,
Long
registerFrom
,
Long
btRegisterChannelId
);
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserServiceImpl.java
View file @
feb433b5
...
@@ -6,6 +6,7 @@ import cn.quantgroup.xyqb.entity.*;
...
@@ -6,6 +6,7 @@ import cn.quantgroup.xyqb.entity.*;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdCardInfo
;
import
cn.quantgroup.xyqb.model.IdType
;
import
cn.quantgroup.xyqb.model.IdType
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.repository.IAddressRepository
;
import
cn.quantgroup.xyqb.repository.IAddressRepository
;
import
cn.quantgroup.xyqb.repository.IContactRepository
;
import
cn.quantgroup.xyqb.repository.IContactRepository
;
import
cn.quantgroup.xyqb.repository.IUserBtRegisterRepository
;
import
cn.quantgroup.xyqb.repository.IUserBtRegisterRepository
;
...
@@ -16,6 +17,7 @@ import cn.quantgroup.xyqb.service.user.ILkbUserService;
...
@@ -16,6 +17,7 @@ import cn.quantgroup.xyqb.service.user.ILkbUserService;
import
cn.quantgroup.xyqb.service.user.IUserBtRegisterService
;
import
cn.quantgroup.xyqb.service.user.IUserBtRegisterService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserDetailService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
...
@@ -150,7 +152,7 @@ public class UserServiceImpl implements IUserService {
...
@@ -150,7 +152,7 @@ public class UserServiceImpl implements IUserService {
@Override
@Override
public
boolean
register
(
String
phoneNo
,
String
password
,
Long
registerFrom
,
String
ip
,
Long
channelId
,
Long
btRegisterChannelId
)
{
public
boolean
register
(
String
phoneNo
,
String
password
,
Long
registerFrom
,
String
ip
,
Long
channelId
,
Long
btRegisterChannelId
,
String
dimension
)
{
String
uuid
=
lkbUserService
.
registerApp
(
phoneNo
,
password
);
String
uuid
=
lkbUserService
.
registerApp
(
phoneNo
,
password
);
Timestamp
currentTime
=
new
Timestamp
(
System
.
currentTimeMillis
());
Timestamp
currentTime
=
new
Timestamp
(
System
.
currentTimeMillis
());
...
@@ -170,18 +172,29 @@ public class UserServiceImpl implements IUserService {
...
@@ -170,18 +172,29 @@ public class UserServiceImpl implements IUserService {
//user.setRegisteredFrom(registerFrom);
//user.setRegisteredFrom(registerFrom);
user
=
userRepository
.
save
(
user
);
user
=
userRepository
.
save
(
user
);
boolean
registerSuccess
=
false
;
if
(
null
!=
user
){
if
(
null
!=
user
){
UserBtRegister
userBtRegister
=
new
UserBtRegister
();
UserBtRegister
userBtRegister
=
new
UserBtRegister
();
userBtRegister
.
setUserId
(
user
.
getId
());
userBtRegister
.
setUserId
(
user
.
getId
());
userBtRegister
.
setRegisterBtMerchantId
(
btRegisterChannelId
);
if
(
null
==
btRegisterChannelId
){
userBtRegister
.
setRegisterBtMerchantId
(
0L
);
}
else
{
userBtRegister
.
setRegisterBtMerchantId
(
btRegisterChannelId
);
}
userBtRegisterService
.
save
(
userBtRegister
);
userBtRegisterService
.
save
(
userBtRegister
);
log
.
info
(
"白条注册渠道信息保存完成"
);
log
.
info
(
"白条注册渠道信息保存完成"
);
registerSuccess
=
true
;
}
}
if
(
registerFrom
!=
158412
){
////网易KA引入注册时不发送短信提醒
if
(
registerFrom
!=
158412
){
////网易KA引入注册时不发送短信提醒
smsService
.
sendAfterRegister
(
phoneNo
);
smsService
.
sendAfterRegister
(
phoneNo
);
}
}
if
(
registerSuccess
){
//增加登陆统计发送
UserStatistics
statistics
=
new
UserStatistics
(
user
,
dimension
,
2
,
channelId
);
MqUtils
.
sendLoanVest
(
statistics
);
}
return
user
!=
null
;
return
user
!=
null
;
}
}
...
...
src/main/java/cn/quantgroup/xyqb/util/JR58GzipUtil.java
View file @
feb433b5
...
@@ -35,7 +35,7 @@ public class JR58GzipUtil {
...
@@ -35,7 +35,7 @@ public class JR58GzipUtil {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
finally
{
}
finally
{
try
{
try
{
byteArrayIn
.
close
();
out
.
close
();
in
.
close
();
in
.
close
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
src/main/java/cn/quantgroup/xyqb/util/MqUtils.java
0 → 100644
View file @
feb433b5
package
cn
.
quantgroup
.
xyqb
.
util
;
import
cn.quantgroup.xyqb.model.UserStatistics
;
import
cn.quantgroup.xyqb.service.mq.IVestService
;
import
lombok.extern.slf4j.Slf4j
;
/**
* Created by xuran on 2017/6/23.
*/
@Slf4j
public
class
MqUtils
{
/**
* 发送用户统计信息
* @param vest
*/
public
static
void
sendLoanVest
(
UserStatistics
vest
){
try
{
IVestService
mqService
=
ApplicationContextHolder
.
getBean
(
"loanVestMQService"
);
mqService
.
send
(
vest
);
}
catch
(
Exception
e
)
{
log
.
error
(
"[MQUtils][MQUtils_exception]发送用户统计信息,vest={},error={}"
,
vest
,
e
);
}
}
}
src/main/resources/config/dev/xyqb.properties
View file @
feb433b5
...
@@ -95,4 +95,14 @@ xyqb.domain = http://192.168.4.153:7003
...
@@ -95,4 +95,14 @@ xyqb.domain = http://192.168.4.153:7003
xyqb.paycenter.url
=
http://192.168.4.26:7006
xyqb.paycenter.url
=
http://192.168.4.26:7006
xyqb.paycenter.id
=
3
xyqb.paycenter.id
=
3
#内部运营系统
#内部运营系统
xyqb.yunying.url
=
http://192.168.4.26:7047
xyqb.yunying.url
=
http://192.168.4.50:7047
\ No newline at end of file
#马甲包
loanvest.rabbitmq.connection.virtual-host
=
/loan_order
#loanvest.rabbitmq.stateMsgQueue=loan_vest_msg_queue
loanvest.rabbitmq.queue
=
loan_user_queue
loanvest.rabbitmq.exchange
=
loan_vest_exchange
loanvest.rabbitmq.connection.host
=
192.168.4.153
loanvest.rabbitmq.connection.port
=
5672
loanvest.rabbitmq.connection.user
=
qa
loanvest.rabbitmq.connection.password
=
qatest
src/main/resources/config/release01/xyqb.properties
View file @
feb433b5
...
@@ -59,4 +59,14 @@ xyqb.domain = http://api.xyqb.com
...
@@ -59,4 +59,14 @@ xyqb.domain = http://api.xyqb.com
xyqb.paycenter.url
=
http://payapi.xyqb.com/
xyqb.paycenter.url
=
http://payapi.xyqb.com/
xyqb.paycenter.id
=
3
xyqb.paycenter.id
=
3
#内部运营系统
#内部运营系统
xyqb.yunying.url
=
https://opapi.xyqb.com
xyqb.yunying.url
=
https://opapi.xyqb.com
\ No newline at end of file
#马甲包
loanvest.rabbitmq.connection.virtual-host
=
/loan_order
loanvest.rabbitmq.queue
=
loan_user_queue
#loanvest.rabbitmq.stateMsgQueue=loan_vest_msg_queue
loanvest.rabbitmq.exchange
=
loan_vest_exchange
loanvest.rabbitmq.connection.host
=
172.16.1.242
loanvest.rabbitmq.connection.port
=
56720
loanvest.rabbitmq.connection.user
=
rabbit_admin
loanvest.rabbitmq.connection.password
=
abc1234
\ No newline at end of file
src/main/resources/config/test/xyqb.properties
View file @
feb433b5
...
@@ -54,4 +54,14 @@ wechat.secret=16eaec16084d0d9c52d4114f359cc72c
...
@@ -54,4 +54,14 @@ wechat.secret=16eaec16084d0d9c52d4114f359cc72c
xyqb.user.domain
=
passport.xyqb.com
xyqb.user.domain
=
passport.xyqb.com
xyqb.user.query.url
=
http://userqry.xyqb.com
xyqb.user.query.url
=
http://userqry.xyqb.com
xyqb.domain
=
http://192.168.4.153:7003
xyqb.domain
=
http://192.168.4.153:7003
\ No newline at end of file
#马甲包
loanvest.rabbitmq.connection.virtual-host
=
/loan_order
#loanvest.rabbitmq.stateMsgQueue=loan_vest_msg_queue
loanvest.rabbitmq.queue
=
loan_user_queue
loanvest.rabbitmq.exchange
=
loan_vest_exchange
loanvest.rabbitmq.connection.host
=
192.168.4.46
loanvest.rabbitmq.connection.port
=
5672
loanvest.rabbitmq.connection.user
=
qa
loanvest.rabbitmq.connection.password
=
qatest
\ No newline at end of file
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