Commit 2bae583b authored by zhangjun's avatar zhangjun

修改

parent 54e626bd
......@@ -2000,7 +2000,7 @@ class User extends MY_Controller
}
// 优惠券字段
if ( $couponRes['result'] == 1 ) {
$orderData['coupon_name'] = isset( $couponRes['data']['name'] ) ? mb_convert_encoding($couponRes['data']['name'],'utf-8','gbk') : 0;
$orderData['coupon_name'] = isset( $couponRes['data']['name'] ) ? iconv('utf-8','gbk',$couponRes['data']['name']) : 0;
$orderData['coupon_price'] = isset( $couponRes['data']['price'] ) ? $couponRes['data']['price'] : 0;
$orderData['coupon_id'] = isset( $couponRes['data']['id'] ) ? $couponRes['data']['id'] : 0;
}
......
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