|
|
|
@ -1643,11 +1643,10 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$this->add_spend($request,1);
|
|
|
|
|
} else {
|
|
|
|
|
echo json_encode(['code'=>0,'msg'=> '支付失败']);
|
|
|
|
|
Log::write("weixin_pay支付失败".serialize($is_pay));
|
|
|
|
|
Log::write("weixin_pay支付失败".serialize($result));
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
$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);
|
|
|
|
|
|
|
|
|
@ -1674,6 +1673,9 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
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) {
|
|
|
|
|
$request['pay_way'] = self::WX_PAY;
|
|
|
|
|
|
|
|
|
|