lyhzzz 2 년 전
부모
커밋
eb23dd3bc5
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/main/java/com/fdkankan/tk/service/impl/WxUserServiceImpl.java

+ 5 - 0
src/main/java/com/fdkankan/tk/service/impl/WxUserServiceImpl.java

@@ -145,6 +145,11 @@ public class WxUserServiceImpl extends ServiceImpl<IWxUserMapper, WxUser> implem
             if(phoneObj==null){
                 throw new BusinessException(ResultCode.WX_PHONE_ERROR);
             }
+            log.info(phoneObj.toJSONString());
+            List<WxUser> wxUsers = this.getByPhone(phoneObj.getString("phoneNumber"));
+            if(wxUsers.size() >0){
+                throw new BusinessException(ResultCode.WX_PHONE_EXIST);
+            }
             //return phoneObj.getString("phoneNumber");
             return phoneObj;
         } catch (Exception e){