shish před 2 roky
rodič
revize
ee45db740c
1 změnil soubory, kde provedl 0 přidání a 22 odebrání
  1. 0 22
      console/controllers/InitController.php

+ 0 - 22
console/controllers/InitController.php

@@ -47,26 +47,4 @@ class InitController extends Controller
         }
         }
     }
     }
 
 
-    //可以删除
-    public function actionUpdateGhs()
-    {
-        ini_set('memory_limit', '2045M');
-        set_time_limit(0);
-        $ghsList = GhsClass::getAllByCondition(['id>' => 0], null, '*', null, true);
-        if (!empty($ghsList)) {
-            foreach ($ghsList as $ghs) {
-                $shopId = $ghs->shopId;
-                $shop = ShopClass::getById($shopId, true);
-                if (!empty($shop)) {
-                    $mobile = $shop->mobile;
-                    if (!empty($mobile)) {
-                        $ghs->mobile = $mobile;
-                        $ghs->save();
-                        echo $mobile . ' ' . $ghs->id . " ok \n";
-                    }
-                }
-            }
-        }
-    }
-
 }
 }