shish il y a 2 ans
Parent
commit
6d49a980f7
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      console/controllers/CustomController.php

+ 6 - 6
console/controllers/CustomController.php

@@ -327,18 +327,18 @@ class CustomController extends Controller
                         $transaction->rollBack();
                         continue;
                     }
-                    $has = ApplyClass::getByCondition(['mobile' => $mobile]);
-                    if (!empty($has)) {
-                        noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,在申请列表,手机号已经存在了哦", '15280215347');
-                        $transaction->rollBack();
-                        continue;
-                    }
                     $hasShop = ShopClass::getByCondition(['mobile' => $mobile]);
                     if (!empty($hasShop)) {
                         //noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,手机号已经存在了", '15280215347');
                         $transaction->rollBack();
                         continue;
                     }
+                    $has = ApplyClass::getByCondition(['mobile' => $mobile]);
+                    if (!empty($has)) {
+                        noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,在申请列表,手机号已经存在了哦", '15280215347');
+                        $transaction->rollBack();
+                        continue;
+                    }
                     $adminName = $post['adminName'] ?? '';
                     $miniOpenId = $post['miniOpenId'] ?? '';
                     $adminInfo = ['name' => $adminName, 'mobile' => $mobile, 'miniOpenId' => $miniOpenId];