elf 2 weeks ago
parent adff2b721a
commit a12e680c60

@ -1643,11 +1643,10 @@ class PayH5Controller extends BaseController{
$this->add_spend($request,1); $this->add_spend($request,1);
} else { } else {
echo json_encode(['code'=>0,'msg'=> '支付失败']); echo json_encode(['code'=>0,'msg'=> '支付失败']);
Log::write("weixin_pay支付失败".serialize($is_pay)); Log::write("weixin_pay支付失败".serialize($result));
exit; exit;
} }
} } else {
$weixn = new Weixin(); $weixn = new Weixin();
$is_pay = json_decode($weixn->weixin_pay(!empty($request['title']) ? $request['title']: "充值", $request['pay_order_number'], $pay_amount, 'MWEB', 1, $pay_conf), true); $is_pay = json_decode($weixn->weixin_pay(!empty($request['title']) ? $request['title']: "充值", $request['pay_order_number'], $pay_amount, 'MWEB', 1, $pay_conf), true);
@ -1674,6 +1673,9 @@ class PayH5Controller extends BaseController{
exit; exit;
// redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'支付失败', 'user_token' => $this->userToken)));exit; // redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'支付失败', 'user_token' => $this->userToken)));exit;
} }
}
}elseif ($pay_info['channel'] == 5) { }elseif ($pay_info['channel'] == 5) {
$request['pay_way'] = self::WX_PAY; $request['pay_way'] = self::WX_PAY;

Loading…
Cancel
Save