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:
commit
848dbf2c80
@ -128,14 +128,14 @@ class StoreProductPriceLogic extends BaseLogic
|
|||||||
'purchase' => $find['purchase'],
|
'purchase' => $find['purchase'],
|
||||||
'cost' => $find['cost'],
|
'cost' => $find['cost'],
|
||||||
'vip_price' => $find['vip_price'],
|
'vip_price' => $find['vip_price'],
|
||||||
'price' => $find['vip_price'],
|
'price' => $find['price'],
|
||||||
'ot_price' => $find['price']
|
'ot_price' => $find['price']
|
||||||
]);
|
]);
|
||||||
StoreBranchProduct::where('product_id', $find['product_id'])->update([
|
StoreBranchProduct::where('product_id', $find['product_id'])->update([
|
||||||
'purchase' => $find['purchase'],
|
'purchase' => $find['purchase'],
|
||||||
'cost' => $find['cost'],
|
'cost' => $find['cost'],
|
||||||
'vip_price' => $find['vip_price'],
|
'vip_price' => $find['vip_price'],
|
||||||
'price' => $find['vip_price'],
|
'price' => $find['price'],
|
||||||
'ot_price' => $find['price']
|
'ot_price' => $find['price']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -209,14 +209,14 @@ class StoreProductPriceLogic extends BaseLogic
|
|||||||
'purchase' => $find['purchase'] ?? 0,
|
'purchase' => $find['purchase'] ?? 0,
|
||||||
'cost' => $find['cost'] ?? 0,
|
'cost' => $find['cost'] ?? 0,
|
||||||
'vip_price' => $find['vip_price'] ?? 0,
|
'vip_price' => $find['vip_price'] ?? 0,
|
||||||
'price' => $find['vip_price'] ?? 0,
|
'price' => $find['price'] ?? 0,
|
||||||
'ot_price' => $find['price'] ?? 0,
|
'ot_price' => $find['price'] ?? 0,
|
||||||
]);
|
]);
|
||||||
StoreBranchProduct::where('product_id', $find['product_id'])->update([
|
StoreBranchProduct::where('product_id', $find['product_id'])->update([
|
||||||
'purchase' => $find['purchase'] ?? 0,
|
'purchase' => $find['purchase'] ?? 0,
|
||||||
'cost' => $find['cost'] ?? 0,
|
'cost' => $find['cost'] ?? 0,
|
||||||
'vip_price' => $find['vip_price'] ?? 0,
|
'vip_price' => $find['vip_price'] ?? 0,
|
||||||
'price' => $find['vip_price'] ?? 0,
|
'price' => $find['price'] ?? 0,
|
||||||
'ot_price' => $find['price'] ?? 0,
|
'ot_price' => $find['price'] ?? 0,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user