shish 4 лет назад
Родитель
Сommit
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();
             }
         }
     }