|
|
@@ -1006,9 +1006,10 @@ class ProductClass extends BaseClass
|
|
|
$shopIds = ShopService::getShopIds($data['sjId']);
|
|
|
foreach ($shopIds as $shopId) {
|
|
|
$data['shopId'] = $shopId;
|
|
|
- //非当前门店库存默认为0
|
|
|
+ //非当前门店库存默认为0并且是下架状态
|
|
|
if ($currentShopId != $shopId) {
|
|
|
$data['stock'] = 0;
|
|
|
+ $data['status'] = 2;
|
|
|
}
|
|
|
$res = self::add($data);
|
|
|
if ($stock > 0 && $res && $currentShopId == $shopId) {
|