shish 4 年之前
父節點
當前提交
c67f930e53
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      console/controllers/ShopController.php

+ 2 - 0
console/controllers/ShopController.php

@@ -23,6 +23,8 @@ class ShopController extends Controller
             $shop = ShopClass::getById($shopId, true);
             if ($shop->mainId != $item->mainId) {
                 echo "客户id:{$item->id} {$shop->mainId} {$item->mainId}\n";
+                $item->mainId = $shop->mainId;
+                $item->save();
             }
         }
     }