Selaa lähdekoodia

fix bug: console 执行了 http 才能调用的代码,把它删除掉

shizhongqi 4 vuotta sitten
vanhempi
commit
cb91083bff
1 muutettua tiedostoa jossa 4 lisäystä ja 21 poistoa
  1. 4 21
      console/controllers/CustomController.php

+ 4 - 21
console/controllers/CustomController.php

@@ -235,11 +235,9 @@ class CustomController extends Controller
             }
             }
             //$shopAdmin->lastLogin = date("Y-m-d H:i:s");
             //$shopAdmin->lastLogin = date("Y-m-d H:i:s");
             //$shopAdmin->save();
             //$shopAdmin->save();
-            $shopAdminId = $shopAdmin->id ?? 0;
+
             //是否有切换门店的权限
             //是否有切换门店的权限
             $switchShop = \biz\shop\classes\ShopAdminClass::hasSwitchShopRight($shopAdmin);
             $switchShop = \biz\shop\classes\ShopAdminClass::hasSwitchShopRight($shopAdmin);
-            $showDemo = 1;
-            $token = jwt::getNewToken($adminId);
             $remind = getenv('HD_UPDATE_REMIND') == false ? 0 : getenv('HD_UPDATE_REMIND');
             $remind = getenv('HD_UPDATE_REMIND') == false ? 0 : getenv('HD_UPDATE_REMIND');
 
 
             $hdUpgrading = getenv('HD_UPGRADING') == false ? 0 : getenv('HD_UPGRADING');
             $hdUpgrading = getenv('HD_UPGRADING') == false ? 0 : getenv('HD_UPGRADING');
@@ -248,24 +246,9 @@ class CustomController extends Controller
                 continue;
                 continue;
             }
             }
             $transaction->commit();
             $transaction->commit();
-            noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 注册", '15280215347');
-            $apiHost = Yii::$app->params['hdHost'];
-            $imgUploadApi = $apiHost . '/upload/save-file';
-
-
-            //涉及几个登录的地方,需要同步修改,请搜索关键词uni_login_info
-            util::success([
-                'token' => $token,
-                'admin' => $admin,
-                'shopId' => $currentShopId,
-                'shopAdminId' => $shopAdminId,
-                'switchShop' => $switchShop,
-                'pfShopId' => $pfShopId,
-                'showDemo' => $showDemo,
-                'imgUploadApi' => $imgUploadApi,
-                //有小程序新版本提示更新
-                'update' => $remind,
-            ]);
+            noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 被批发端手动注册", '15280215347');
+
+            echo "create customers success";
         }
         }
     }
     }