处理商品价格同步的错误
This commit is contained in:
parent
52561ce880
commit
dfae914b6f
@ -101,16 +101,16 @@ class StoreProductPriceLogic extends BaseLogic
|
|||||||
'status' => 1
|
'status' => 1
|
||||||
]);
|
]);
|
||||||
StoreProduct::where('id', $find['product_id'])->update([
|
StoreProduct::where('id', $find['product_id'])->update([
|
||||||
'purchase' => $find['purchase'],
|
'purchase' => $find['purchase'] ?? 0,
|
||||||
'cost' => $find['cost'],
|
'cost' => $find['cost'] ?? 0,
|
||||||
'vip_price' => $find['cost'],
|
'vip_price' => $find['cost'] ?? 0,
|
||||||
'price' => $find['price']
|
'price' => $find['price'] ?? 0
|
||||||
]);
|
]);
|
||||||
StoreBranchProduct::where('product_id', $find['product_id'])->update([
|
StoreBranchProduct::where('product_id', $find['product_id'])->update([
|
||||||
'purchase' => $find['purchase'],
|
'purchase' => $find['purchase'] ?? 0,
|
||||||
'cost' => $find['cost'],
|
'cost' => $find['cost'] ?? 0,
|
||||||
'vip_price' => $find['cost'],
|
'vip_price' => $find['cost'] ?? 0,
|
||||||
'price' => $find['price']
|
'price' => $find['price'] ?? 0
|
||||||
]);
|
]);
|
||||||
self::setProductGroupPrice($find);
|
self::setProductGroupPrice($find);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user