shish 5 年 前
コミット
20edf3ef01
1 ファイル変更4 行追加1 行削除
  1. 4 1
      app-ghs/controllers/ProductController.php

+ 4 - 1
app-ghs/controllers/ProductController.php

@@ -305,7 +305,10 @@ class ProductController extends BaseController
                 $shopAll = ShopClass::getAllShop($this->sjId);
                 if (!empty($shopAll)) {
                     foreach ($shopAll as $currentShop) {
-                        $currentShopId = $currentShop->id;
+                        $currentShopId = $currentShop['id'] ?? 0;
+                        if (empty($currentShopId)) {
+                            continue;
+                        }
                         ProductClass::updateByCondition(['shopId' => $currentShopId, 'itemId' => $currentItemId], $upData);
                     }
                 }