Merge pull request 'dev' (#25) from dev into main

Reviewed-on: https://gitea.lihaink.cn/mkm/multi-store/pulls/25
This commit is contained in:
mkm 2025-04-18 16:33:03 +08:00
commit 848dbf2c80

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,
]);
}