|
@@ -116,7 +116,6 @@ class Passport extends Api
|
|
$order_no = !empty($order_no) ? $order_no : time() . rand(1, 200);
|
|
$order_no = !empty($order_no) ? $order_no : time() . rand(1, 200);
|
|
|
|
|
|
$pay = new PayUtil();
|
|
$pay = new PayUtil();
|
|
- $pay->jsPay($openid, "D0{$order_no}", '0.01', '开通会员');
|
|
|
|
if (!$pay->jsPay($openid, "D0{$order_no}", '0.01', '开通会员')){
|
|
if (!$pay->jsPay($openid, "D0{$order_no}", '0.01', '开通会员')){
|
|
$this->error($pay->getMessage());
|
|
$this->error($pay->getMessage());
|
|
}
|
|
}
|
|
@@ -124,7 +123,6 @@ class Passport extends Api
|
|
$res = $pay->getData();
|
|
$res = $pay->getData();
|
|
if (empty($res['data']['pay_info']) || !$pay_info = json_decode($res['data']['pay_info'],true)){
|
|
if (empty($res['data']['pay_info']) || !$pay_info = json_decode($res['data']['pay_info'],true)){
|
|
$this->error('支付信息有误');
|
|
$this->error('支付信息有误');
|
|
- return;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
$this->success('success', [
|
|
$this->success('success', [
|