|
|
@ -135,6 +135,14 @@ public class LoginController { |
|
|
|
assessUser.setBankcardInitMoney(examPaperDto.getBankcardInitMoney()); |
|
|
|
assessUser.setBankcardInitMoney(examPaperDto.getBankcardInitMoney()); |
|
|
|
assessUser.setDigitwalletInitMoney(examPaperDto.getDigitwalletInitMoney()); |
|
|
|
assessUser.setDigitwalletInitMoney(examPaperDto.getDigitwalletInitMoney()); |
|
|
|
needInit = true; |
|
|
|
needInit = true; |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
String tel=assessUser.getTel(); |
|
|
|
|
|
|
|
int count=assessUserService.countUserByTel(tel); |
|
|
|
|
|
|
|
if(count==0){ |
|
|
|
|
|
|
|
String code = String.format("%06d", new Random().nextInt(1000000)); |
|
|
|
|
|
|
|
redisTemplate.opsForValue().set(YyyfConstant.REGISTER_KEY.concat(tel), code, YyyfConstant.TIME_OUT, TimeUnit.MINUTES); |
|
|
|
|
|
|
|
yyyfLoginDto.setCode(code); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|