diff --git a/app/api/logic/order/OrderLogic.php b/app/api/logic/order/OrderLogic.php index c0c953e20..88fafce76 100644 --- a/app/api/logic/order/OrderLogic.php +++ b/app/api/logic/order/OrderLogic.php @@ -882,12 +882,16 @@ class OrderLogic extends BaseLogic } //开启活动或用户身份为 商户、酒店、食堂 展示成本价(即商户价) //目前已修改为 商品分组报价,根据用户组展示对应的价格 + if ($offActivity == 1) { + $price = $product['cost']; + } else { $price = $product['price']; //单门店活动判断 - if ($storeId == getenv('ACTIVITY_STORE_ID')) { - $storeBranchPrice = StoreBranchProduct::where('store_id', getenv('ACTIVITY_STORE_ID'))->where('product_id', $product['id'])->value('price'); - if ($storeBranchPrice) { - $price = $storeBranchPrice; + if ($storeId == getenv('ACTIVITY_STORE_ID')) { + $storeBranchPrice = StoreBranchProduct::where('store_id', getenv('ACTIVITY_STORE_ID'))->where('product_id', $product['id'])->value('price'); + if ($storeBranchPrice) { + $price = $storeBranchPrice; + } } } if ($offActivity == 0 && $product['top_cate_id'] == 15189 && $user && $user['user_ship'] == 5) {