shish 4 yıl önce
ebeveyn
işleme
432f546dfe
1 değiştirilmiş dosya ile 9 ekleme ve 3 silme
  1. 9 3
      console/controllers/CustomController.php

+ 9 - 3
console/controllers/CustomController.php

@@ -135,6 +135,8 @@ class CustomController extends Controller
             $customer = Yii::$app->redis->executeCommand('RPOP', [$customerCachedKey]);
             $customList[] = $customer;
         }
+        $customList = ['石石石_17061583291_12887_36413_好运鲜花批发_126129'];
+
         if (empty($customList)) {
             return false;
         }
@@ -154,44 +156,48 @@ class CustomController extends Controller
                 $post['introSjId'] = $customerInfo[2];
                 $post['introShopId'] = $customerInfo[3];
                 $post['introSjName'] = $customerInfo[4];
-
+echo '1';
                 $post['name'] = $shopName;
                 if (empty($shopName)) {
                     noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,原因:名称没有填写", '15280215347');
                     $transaction->rollBack();
                     continue;
                 }
-
+                echo '12';
                 $post['mobile'] = $mobile;
                 if (stringUtil::isMobile($mobile) == false) {
                     noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,原因:手机号填写错误", '15280215347');
                     $transaction->rollBack();
                     continue;
                 }
+                echo '13';
                 if (stringUtil::getWordNum($shopName) > 8) {
                     noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,原因:名称超过了8个汉字", '15280215347');
                     $transaction->rollBack();
                     continue;
                 }
+                echo '14';
                 $has = SjClass::getByCondition(['name' => $shopName]);
                 if (!empty($has)) {
                     noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,原因:名称已经存在了哦", '15280215347');
                     $transaction->rollBack();
                     continue;
                 }
+                echo '15';
                 $has = ApplyClass::getByCondition(['mobile' => $mobile]);
                 if (!empty($has)) {
                     noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,原因:手机号已经存在了哦", '15280215347');
                     $transaction->rollBack();
                     continue;
                 }
+                echo '16';
                 $hasShop = ShopClass::getByCondition(['mobile' => $mobile]);
                 if (!empty($hasShop)) {
                     noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,原因:手机号已经存在了", '15280215347');
                     $transaction->rollBack();
                     continue;
                 }
-
+                echo '17';
                 $adminName = $post['adminName'] ?? '';
                 $miniOpenId = $post['miniOpenId'] ?? '';
                 $adminInfo = ['name' => $adminName, 'mobile' => $mobile, 'miniOpenId' => $miniOpenId];