shish 4 năm trước cách đây
mục cha
commit
ab6cfa818a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      console/controllers/ShopController.php

+ 4 - 0
console/controllers/ShopController.php

@@ -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();
+                }
             }
         }
     }