shish 3 лет назад
Родитель
Сommit
c41cc5a9bc
1 измененных файлов с 0 добавлено и 26 удалено
  1. 0 26
      console/controllers/InitController.php

+ 0 - 26
console/controllers/InitController.php

@@ -2,35 +2,9 @@
 
 namespace console\controllers;
 
-use biz\shop\classes\ShopClass;
-use biz\wx\classes\WxMessageClass;
-use bizHd\custom\classes\CustomClass;
-use bizHd\custom\classes\HdClass;
-use common\components\stringUtil;
 use yii\console\Controller;
 
 class InitController extends Controller
 {
 
-    public function actionCustom()
-    {
-        $customList = CustomClass::getAllByCondition(['id>' => 0], null, '*', null, true);
-        if (!empty($customList)) {
-            foreach ($customList as $custom) {
-                $userId = $custom->userId ?? 0;
-                $shopId = $custom->shopId ?? 0;
-                $customId = $custom->id ?? 0;
-                $hd = HdClass::getByCondition(['userId' => $userId, 'shopId' => $shopId], true);
-                if (!empty($hd)) {
-                    $hdId = $hd->id ?? 0;
-                    $hd->customId = $customId;
-                    $hd->save();
-                    $custom->hdId = $hdId;
-                    $custom->save();
-                    echo "hdId:{$hdId} customId:{$customId} \n";
-                }
-            }
-        }
-    }
-
 }