shish há 4 anos atrás
pai
commit
e2251c8e15
1 ficheiros alterados com 6 adições e 6 exclusões
  1. 6 6
      console/controllers/InitController.php

+ 6 - 6
console/controllers/InitController.php

@@ -257,12 +257,6 @@ class InitController extends Controller
             }
         }
 
-        self::migrationDel();
-
-        //客户和供应商的中央化
-        self::ghsCustomMain();
-
-
         //清除零售商城相关的数据
         $sql = "TRUNCATE xhUser;TRUNCATE xhCustom;truncate xhUserAsset;";
         Yii::$app->db->createCommand($sql)->execute();
@@ -284,6 +278,10 @@ class InitController extends Controller
             }
         }
 
+        self::migrationDel();
+
+        //客户和供应商的中央化
+        self::ghsCustomMain();
 
     }
 
@@ -300,6 +298,8 @@ class InitController extends Controller
             }
         }
 
+        print_r($map);
+
         $customList = CustomClass::getAllByCondition(['id>' => 0], null, '*', null, true);
         if (!empty($customList)) {
             foreach ($customList as $custom) {