xiongzhu 3 anni fa
parent
commit
9cc688d71d

+ 3 - 5
src/main/java/com/izouma/nineth/service/UserService.java

@@ -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);