master
tping 4 years ago
parent c2875d808c
commit bdb473ea4f

@ -1406,7 +1406,7 @@ class PayH5Controller extends BaseController{
//redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=> $payCheck['msg'], 'user_token' => $this->userToken)));exit; //redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=> $payCheck['msg'], 'user_token' => $this->userToken)));exit;
} }
C(api('Config/lists')); C(api('Config/lists'));
$game = M('Game','tab_')->where(['id'=>$request['game_id']])->field('pay_status')->find(); $game = M('Game','tab_')->where(['id'=>$request['game_id']])->field('id, pay_status, game_type_id')->find();
if($game['pay_status'] == 0){ if($game['pay_status'] == 0){
echo json_encode(['code'=>0,'msg'=> '该游戏暂时无法充值,请联系客服!']);exit; echo json_encode(['code'=>0,'msg'=> '该游戏暂时无法充值,请联系客服!']);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;

Loading…
Cancel
Save