Commit 73b64706 by Administrator

'购买真题试卷点击确认支付按钮无反应'

parent 71ba4ccc
......@@ -2154,19 +2154,16 @@ class PayVideoAction extends CommonAction
$this->assign('url', $wxpay_res);
$html = $this->fetch('wxpay');
$data = array('status' => 1, 'data' => ['html' => $html, 'pay_pass_num' => $pay_pass_num]);
$data['a'] = 'a';
echo json_encode($data);
exit;
} else {
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger')) {
$data = array('status' => 1, 'data' => ['html' => $wxpay_res, 'pay_pass_num' => $pay_pass_num]);
$data['b'] = 'b';
echo json_encode($data);
exit;
} else {
$redirect_url = SITE_URL . "/pay/exams_{$_POST['vst']}/" . jiami(rand(100, 999)) . "/{$pay_pass_num}.html";
$data = array('status' => 1, 'data' => ['html' => $wxpay_res . "&redirect_url={$redirect_url}", 'pay_pass_num' => $pay_pass_num]);
$data['c'] = 'c';
echo json_encode($data);
exit;
}
......
......@@ -72,6 +72,7 @@
}
});
}
console.log(that);
if(that.agree) {
var s = 0;
$.ajax({
......
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