feat(OrderLogic): 修改生鲜产品订单金额限制逻辑
This commit is contained in:
parent
73565cace9
commit
ea4bd28a0e
@ -203,11 +203,11 @@ class OrderLogic extends BaseLogic
|
||||
|
||||
$pay_price = self::$pay_price; // bcsub(self::$pay_price, self::$activity_price, 2); //减去活动优惠金额
|
||||
//判断生鲜是否大于200
|
||||
if ($createOrder == 1 && self::$fresh_price > 0 &&$source!=2) {
|
||||
if (self::$pay_price < 200) {
|
||||
throw new BusinessException('订单包含生鲜产品,订单金额必须大于200元,才能下单');
|
||||
}
|
||||
}
|
||||
// if ($createOrder == 1 && self::$fresh_price > 0 &&$source!=2) {
|
||||
// if (self::$pay_price < 200) {
|
||||
// throw new BusinessException('订单包含生鲜产品,订单金额必须大于200元,才能下单');
|
||||
// }
|
||||
// }
|
||||
if (isset($params['store_id']) && $params['store_id'] == getenv('ACTIVITY_STORE_ID')) {
|
||||
$off_activity = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user