|
|
@@ -60,6 +60,10 @@ class ShopController extends Controller
|
|
|
$ownShop = ShopClass::getById($ownShopId, true);
|
|
|
if ($ownShop->mainId != $ownMainId) {
|
|
|
echo "ghs own {$item->id} {$ownMainId} {$ownShop->mainId} \n";
|
|
|
+ if (!empty($ownShop->mainId)) {
|
|
|
+ $item->ownMainId = $ownShop->mainId;
|
|
|
+ $item->save();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|