Commit 66fe2db4 authored by zhangjun's avatar zhangjun

修改

parent a5409452
...@@ -1922,7 +1922,7 @@ class User extends MY_Controller ...@@ -1922,7 +1922,7 @@ class User extends MY_Controller
$userIdArr = array(4112782,5355879,1729793,4449390); $userIdArr = array(4112782,5355879,1729793,4449390);
if(in_array($this->user_id,$userIdArr)){ if(in_array($this->user_id,$userIdArr)){
$price = 0.01; $price = $price * 0.01;
} }
//校验参数正确性 //校验参数正确性
...@@ -2018,6 +2018,17 @@ class User extends MY_Controller ...@@ -2018,6 +2018,17 @@ class User extends MY_Controller
if ( GB_CITY == 'nj' ){ if ( GB_CITY == 'nj' ){
if( isset( $use_coupon ) && $use_coupon == 1 ) { if( isset( $use_coupon ) && $use_coupon == 1 ) {
$this->user_model->useCoupon( $orderData['transaction_id'], $this->user_id, $coupon_id, $price, $packageType ); $this->user_model->useCoupon( $orderData['transaction_id'], $this->user_id, $coupon_id, $price, $packageType );
//支付成功后的操作
$result = $this->package_model->payFinish( $orderData, array( 'transaction_id' => '000000000000000' ) );
if($result){
if ( GB_CITY == 'nj' ) {
$this->sendMsg( $orderData );
}
}
$data['orderData'] = $orderData;
$data['title'] = '0元支付';
$this->load->view('zero_yuan_pay',$data);
} }
} }
......
<?php require APPPATH_MVC.'views/header.php'; ?>
<div class="paysuc popw" >
<div class="release-failBack">
</div>
<div class="release-fail yz-pop">
<div class="tit">
<span>支付成功 </span>
<div class="closes"></div>
</div>
<div class="poplist">
<div class="pstit">支付成功</div>
<div class="f16 c3 mt20">前往 <a href="<?php echo USER_CENTER; ?>" class="orange">个人中心>></a></div>
<div class="f14 c3 mt10" >支付金额:<span class="bold red"><?=$orderData['price']?></span>
<a href="<?php echo USER_CENTER.'user/orderInvoice/'.$orderData['id']?>">
<span class="f14 oranget hand">我要开发票</span>
</a>
</div>
</div>
<p>重要提醒:不点陌生链接、不泄露银行卡和验证码信息,谨防诈骗!</p>
</div>
</div>
<!--2017-11-28 end-->
<?php require APPPATH_MVC.'views/footer.php'; ?>
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