修改用户类型收银展示的值

This commit is contained in:
liu 2024-06-19 11:23:54 +08:00
parent 5b01a6ab49
commit 4112b6ffe3

View File

@ -112,8 +112,10 @@ class StoreOrderLogic extends BaseLogic
}
if ($user && $user['user_ship'] == 1) {
$pay_price = self::$pay_price;
$activity_string = '';
}else{
$pay_price =bcsub(self::$pay_price, self::$activity_price, 2); //减去活动优惠金额
$activity_string = '减免';
}
$vipPrice = 0;
@ -132,7 +134,7 @@ class StoreOrderLogic extends BaseLogic
'cart_id' => implode(',', $cartId),
'store_id' => $params['store_id'] ?? 0,
'shipping_type' =>3,//配送方式 1=快递 2=门店自提
'activity' =>'减免',
'activity' =>$activity_string,
'activity_price' =>self::$activity_price,//活动优惠价
'activities' => self::$activity_price>0?1:0,
'default_delivery'=>1,