Commit 71cc8654 authored by liuyuzhen's avatar liuyuzhen

下单成功优惠券

parent 00796f8b
......@@ -1008,10 +1008,10 @@ class OrderServiceModel extends \Business\AbstractModel
$orderAmount = intval($coupon['order_amount']);
if ($coupon['type'] == \Our\ApiConst::noLimitCoupon) {//无门槛优惠券
$temp['type'] = \Our\ApiConst::noLimitCouponType;
$temp['title'] = $coupon['cash_money'];
$temp['title'] = intval($coupon['cash_money']);
$temp['subTitle'] = \Our\DescribeConst::noLimitCoupon;
} else if ($coupon['coupon_type'] == \Our\ApiConst::fullMinusCouponType) {//满额减免券
$temp['title'] = $coupon['cash_money'];
$temp['title'] = intval($coupon['cash_money']);
$temp['subTitle'] = \Our\Common::format(\Our\DescribeConst::couponFullAvailable, $orderAmount);
} else if ($coupon['coupon_type'] == \Our\ApiConst::discountCouponType) {
$temp['title'] = $coupon['discount'];
......@@ -1025,7 +1025,7 @@ class OrderServiceModel extends \Business\AbstractModel
}
$temp['storeId'] = $coupon['store_id'];
if ($temp['storeId']) {
$storeInfo = \Our\RedisHelper::cachedFunction(\Redis\Db6\StoreRedisModel::getInstance(), array(&$storeDao, 'getInfoById'), array($temp['storeId'], 'store_name'), \Our\ApiConst::oneHour);
$storeInfo = $storeDao->get($temp['storeId'],false);
if (!$storeInfo) {
continue;
}
......
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