修改商品零售价格的错误

This commit is contained in:
lewis 2025-04-18 16:31:14 +08:00
parent bb039fcf5e
commit 5e35acdc39

View File

@ -128,14 +128,14 @@ class StoreProductPriceLogic extends BaseLogic
'purchase' => $find['purchase'],
'cost' => $find['cost'],
'vip_price' => $find['vip_price'],
'price' => $find['vip_price'],
'price' => $find['price'],
'ot_price' => $find['price']
]);
StoreBranchProduct::where('product_id', $find['product_id'])->update([
'purchase' => $find['purchase'],
'cost' => $find['cost'],
'vip_price' => $find['vip_price'],
'price' => $find['vip_price'],
'price' => $find['price'],
'ot_price' => $find['price']
]);
@ -209,14 +209,14 @@ class StoreProductPriceLogic extends BaseLogic
'purchase' => $find['purchase'] ?? 0,
'cost' => $find['cost'] ?? 0,
'vip_price' => $find['vip_price'] ?? 0,
'price' => $find['vip_price'] ?? 0,
'price' => $find['price'] ?? 0,
'ot_price' => $find['price'] ?? 0,
]);
StoreBranchProduct::where('product_id', $find['product_id'])->update([
'purchase' => $find['purchase'] ?? 0,
'cost' => $find['cost'] ?? 0,
'vip_price' => $find['vip_price'] ?? 0,
'price' => $find['vip_price'] ?? 0,
'price' => $find['price'] ?? 0,
'ot_price' => $find['price'] ?? 0,
]);
}