Browse Source

检查手机号

(cherry picked from commit 1a9900230c687d22fcd04ed5f4a16b409a9c2171)
liujc 1 year ago
parent
commit
0f24307748

+ 2 - 2
cooleshow-user/user-tenant/src/main/java/com/yonge/cooleshow/tenant/controller/open/OpenTenantController.java

@@ -74,9 +74,9 @@ public class OpenTenantController {
         // 根据手机号 判断是否已经有机构账户
         // 根据手机号 判断是否已经有机构账户
         TenantStaff tenantStaff = tenantStaffService.getByPhone(phone);
         TenantStaff tenantStaff = tenantStaffService.getByPhone(phone);
         if (tenantStaff != null) {
         if (tenantStaff != null) {
-            throw new BizException("该手机号已经有机构账号");
+            return HttpResponseResult.status(true);
         }
         }
-        return HttpResponseResult.status(true);
+        return HttpResponseResult.status(false);
     }
     }