feat(StoreOrderLogic): 修改了计算价格的逻辑,完善了商品信息的查询

This commit is contained in:
mkm 2024-06-14 14:15:11 +08:00
parent d2c269deb7
commit 78f238e67c

View File

@ -47,7 +47,7 @@ class StoreOrderLogic extends BaseLogic
/** 计算价格 */ /** 计算价格 */
foreach ($cart_select as $k => $v) { foreach ($cart_select as $k => $v) {
$find = StoreBranchProduct::where(['product_id' => $v['product_id'],'store_id'=>$params['store_id']])->field('id branch_product_id,store_name,image,unit,cost price,cost,product_id')->find(); $find = StoreBranchProduct::where(['product_id' => $v['product_id'],'store_id'=>$params['store_id']])->field('id branch_product_id,store_name,image,unit,price,cost,product_id')->find();
if (!$find) { if (!$find) {
continue; continue;
} }