Commit b20118cc authored by 技术部-任文超's avatar 技术部-任文超

解决NPE

parent 1d9a15b9
......@@ -192,13 +192,15 @@ public class UserController implements IBaseController {
LOGGER.error("用户不存在,或者已经注销,phoneNo:{}",phoneNo);
return JsonResult.buildErrorStateResult("登录失败", null);
}
UserStatistics statistics = new UserStatistics(user,dimension,3,channelId);
UserStatistics statistics = null;
if (user == null) {
user = userRegisterService.register(phoneNo, channelId, createdFrom, appChannel,btRegisterChannelId,dimension);
statistics.setAction(2);
if (user == null) {
throw new UserNotExistException("用户未找到");
}
statistics = new UserStatistics(user,dimension,2,channelId);
}else{
statistics = new UserStatistics(user,dimension,3,channelId);
}
//增加登陆统计发送
MqUtils.sendLoanVest(statistics);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment