|
@@ -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);
|
|
|
}
|