Commit 1465bc39 authored by zhangjun's avatar zhangjun

修改

parent ecbc9c91
......@@ -1998,6 +1998,12 @@ class User extends MY_Controller
if($packageType == 1){
$orderData['package_keyword'] = $packageKeyword;
}
// 优惠券字段
if ( $couponRes['result'] == 1 ) {
$orderData['coupon_name'] = isset( $couponRes['data']['name'] ) ? $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;
}
$orderData['package_days'] = $day;
$orderData['price'] = $price;
$orderData['create_time'] = time();
......
......@@ -6129,7 +6129,7 @@ if($searcharr['infotype']==4){
'business_type' => 2,
);
$url = GB_USE_COUPON_URL;
$couonRes = request_post( $url, $params );
$couonRes = $this->request_post( $url, $params );
$couonRes = !empty( $couonRes ) ? json_decode( $couonRes, 1 ) : array();
return $couonRes;
}
......
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