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);
             $shop = ShopClass::getById($shopId, true);
             if ($shop->mainId != $item->mainId) {
             if ($shop->mainId != $item->mainId) {
                 echo "客户id:{$item->id} {$shop->mainId} {$item->mainId}\n";
                 echo "客户id:{$item->id} {$shop->mainId} {$item->mainId}\n";
+                $item->mainId = $shop->mainId;
+                $item->save();
             }
             }
         }
         }
     }
     }