diff --git a/app/api/lists/order/CartList.php b/app/api/lists/order/CartList.php index 273ea8af..def9aa0c 100644 --- a/app/api/lists/order/CartList.php +++ b/app/api/lists/order/CartList.php @@ -120,14 +120,12 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists if($this->user_ship==0){ $data['msg']='您已选购满500元,支付成功后即可获得'.bcmul($this->total_price,0.1,2).'元品牌礼品兑换券,可到线下门店兑换礼品。'; } - if($this->off_activity==0){//1 - $this->activity_price = $this->total_price; + if($this->off_activity==1){//1 $data['pay_price']=$this->activity_price; if($this->activity_price<500){ if($this->user_ship==0){ $data['msg']='还差'.bcsub(500,$this->activity_price,2).'即可获得10%的品牌礼品兑换券,可到线下门店兑换礼品。'; } - $data['pay_price']= $this->activity_price; }else{ if($this->user_ship==0){ $data['msg']= '您已选购满500元,支付成功后即可获得'.bcmul($this->activity_price,0.1,2).'元品牌礼品兑换券,可到线下门店兑换礼品。';