Commit 67107658 authored by liuyuzhen's avatar liuyuzhen

优惠券

parent ced4dab9
......@@ -113,6 +113,7 @@ class DescribeConst
const couponFullForGift = '满{0}送礼品券';
const noLimitGoodsCouponName = '元无门槛';
const available = '可用';
const minus = '减';
const couponTitleFullAvailAbleNoAmountLimit = '全场减{0}';//无门槛减免券
......
......@@ -304,7 +304,7 @@ class CouponServiceModel extends \Business\AbstractModel{
if($coupon['type'] == \Our\ApiConst::noLimitCouponType){
$couponTitles[] = $coupon['title'].\Our\DescribeConst::noLimitGoodsCouponName;
}else if($coupon['type'] == \Our\ApiConst::fullMinusCouponType){
$couponTitles[] = str_replace(\Our\DescribeConst::available,$coupon['title'],$coupon['subTitle']);
$couponTitles[] = str_replace(\Our\DescribeConst::available,\Our\DescribeConst::minus.$coupon['title'],$coupon['subTitle']);
}else{
$couponTitles[] = $coupon['subTitle'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment