shish 2 anni fa
parent
commit
49d1511f39
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      console/controllers/CpController.php

+ 5 - 4
console/controllers/CpController.php

@@ -18,6 +18,11 @@ class CpController extends Controller
     //创建分店时,复制产品,重要脚本,不能删除
     public function actionCopyCp()
     {
+        $cp = CpClassClass::getOne(true);
+        $e = $cp->attributes;
+        print_r($e);
+        die;
+
         $copyKey = 'copy_old_cp_to_new_cp';
         $copyList = [];
         while ($count = Yii::$app->redis->executeCommand('LLEN', [$copyKey])) {
@@ -27,10 +32,6 @@ class CpController extends Controller
         if (empty($copyList)) {
             return false;
         }
-        $cp = CpClassClass::getOne(true);
-        $e = $cp->attributes;
-        print_r($e);
-        die;
         foreach ($copyList as $copy) {
             $arr = json_decode($copy, true);
             $oldMainId = $arr['oldMainId'] ?? 0;