|
|
@@ -491,11 +491,9 @@ public class UserService {
|
|
|
if (!bankValidate.isValidated()) {
|
|
|
throw new BusinessException("暂不支持此卡");
|
|
|
}
|
|
|
- if (StringUtils.isEmpty(user.getMemberId())) {
|
|
|
- user.setMemberId(adapayService.createMember(userId, user.getPhone(), identityAuth.getRealName(),
|
|
|
- identityAuth.getIdNo()));
|
|
|
- userRepo.saveAndFlush(user);
|
|
|
- }
|
|
|
+ user.setMemberId(adapayService.createMember(userId, user.getPhone(), identityAuth.getRealName(),
|
|
|
+ identityAuth.getIdNo()));
|
|
|
+ userRepo.saveAndFlush(user);
|
|
|
smsService.verify(phone, code);
|
|
|
String accountId = adapayService.createSettleAccount(user.getMemberId(), identityAuth.getRealName(),
|
|
|
identityAuth.getIdNo(), phone, bankNo);
|