ソースを参照

forget commit Pay model

superbee 8 年 前
コミット
a761fe83e8
1 ファイル変更2 行追加4 行削除
  1. 2 4
      application/home/controller/Pay.php

+ 2 - 4
application/home/controller/Pay.php

@@ -31,8 +31,6 @@ class Pay extends Controller{
 		
 		$biz_content = $this->getAliTradeInfo($ipaInfo, $data['u']);
 		$val = $this->getAliPayInfo($plugin, $biz_content);
-		print_r($val);
-		exit;
 		
 		return http_build_query($val);
 	}
@@ -51,8 +49,8 @@ class Pay extends Controller{
 		$content['timeout_express'] = '90m';
 		$content['body'] = $ipa['desc'];
 		
-// 		$userPay = new UserPay();
-// 		$userPay->add(['user_id'=>$user, 'cost'=>$ipa['price'], 'pay_id'=>$ipa['id'], 'out_trade_no'=>$tradeNo]);
+		$userPay = new UserPay();
+		$userPay->add(['user_id'=>$user, 'cost'=>$ipa['price'], 'pay_id'=>$ipa['id'], 'out_trade_no'=>$tradeNo]);
 		
 		return json_encode($content);
 	}