feat(OrderLogic): 修改生鲜产品订单金额限制逻辑

This commit is contained in:
mkm 2024-09-06 10:06:38 +08:00
parent 73565cace9
commit ea4bd28a0e

View File

@ -203,11 +203,11 @@ class OrderLogic extends BaseLogic
$pay_price = self::$pay_price; // bcsub(self::$pay_price, self::$activity_price, 2); //减去活动优惠金额 $pay_price = self::$pay_price; // bcsub(self::$pay_price, self::$activity_price, 2); //减去活动优惠金额
//判断生鲜是否大于200 //判断生鲜是否大于200
if ($createOrder == 1 && self::$fresh_price > 0 &&$source!=2) { // if ($createOrder == 1 && self::$fresh_price > 0 &&$source!=2) {
if (self::$pay_price < 200) { // if (self::$pay_price < 200) {
throw new BusinessException('订单包含生鲜产品订单金额必须大于200元才能下单'); // throw new BusinessException('订单包含生鲜产品订单金额必须大于200元才能下单');
} // }
} // }
if (isset($params['store_id']) && $params['store_id'] == getenv('ACTIVITY_STORE_ID')) { if (isset($params['store_id']) && $params['store_id'] == getenv('ACTIVITY_STORE_ID')) {
$off_activity = 1; $off_activity = 1;
} }