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