From d19fd08b97fca60b45eb849678c97bec76973ad1 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Wed, 4 Dec 2019 15:27:11 +0800 Subject: [PATCH] =?UTF-8?q?extend=20cp=E8=AE=A2=E5=8D=95=E5=8F=B7=20game?= =?UTF-8?q?=5Fid=20=E9=87=8D=E5=A4=8D=20=E4=B8=8D=E8=AE=A9=E5=94=A4?= =?UTF-8?q?=E8=B5=B7=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/AppleController.class.php | 4 ++-- Application/Sdk/Controller/PayH5Controller.class.php | 4 ++-- Application/Sdk/Controller/WapPayController.class.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Application/Sdk/Controller/AppleController.class.php b/Application/Sdk/Controller/AppleController.class.php index 5f9d0061..cac98e4a 100644 --- a/Application/Sdk/Controller/AppleController.class.php +++ b/Application/Sdk/Controller/AppleController.class.php @@ -119,7 +119,7 @@ class AppleController extends BaseController{ if($request['price']*1<=0){ echo json_encode(['code'=>0,'msg'=>'充值金额有误']);exit; } - $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id'],'pay_status'=>1))->find(); + $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id']/* ,'pay_status'=>1 */))->find(); if($extend_data){ echo json_encode(['code'=>0,'msg'=>'订单号重复,请关闭支付页面重新支付']);exit; } @@ -383,7 +383,7 @@ class AppleController extends BaseController{ // $this->set_message(0,"fail","充值金额有误"); redirect(U('Spend/notice_v1',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'充值金额有误')));exit; } - $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id'],'pay_status'=>1))->find(); + $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id']/* ,'pay_status'=>1 */))->find(); if($extend_data){ //$this->set_message(1089,"fail","订单号重复,请关闭支付页面重新支付"); redirect(U('Spend/notice_v1',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'订单号重复,请关闭支付页面重新支付')));exit; diff --git a/Application/Sdk/Controller/PayH5Controller.class.php b/Application/Sdk/Controller/PayH5Controller.class.php index 3b982960..4474b95b 100644 --- a/Application/Sdk/Controller/PayH5Controller.class.php +++ b/Application/Sdk/Controller/PayH5Controller.class.php @@ -304,7 +304,7 @@ class PayH5Controller extends BaseController{ if($request['price']*1<=0){ echo json_encode(['code'=>0,'msg'=>'充值金额有误']);exit; } - $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id'],'pay_status'=>1))->find(); + $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id']/* ,'pay_status'=>1 */))->find(); if($extend_data){ echo json_encode(['code'=>0,'msg'=>'订单号重复,请关闭支付页面重新支付']);exit; } @@ -1255,7 +1255,7 @@ ADD COLUMN `pay_url` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER // $this->set_message(0,"fail","充值金额有误"); redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'充值金额有误', 'user_token' => $this->userToken)));exit; } - $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id'],'pay_status'=>1))->find(); + $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'game_id'=>$request['game_id']/* ,'pay_status'=>1 */))->find(); if($extend_data){ //$this->set_message(1089,"fail","订单号重复,请关闭支付页面重新支付"); redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'订单号重复,请关闭支付页面重新支付', 'user_token' => $this->userToken)));exit; diff --git a/Application/Sdk/Controller/WapPayController.class.php b/Application/Sdk/Controller/WapPayController.class.php index b6074a2d..3a1006a2 100644 --- a/Application/Sdk/Controller/WapPayController.class.php +++ b/Application/Sdk/Controller/WapPayController.class.php @@ -89,7 +89,7 @@ class WapPayController extends BaseController{ $this->set_message(0,"fail","该游戏暂时无法充值,请联系客服!"); } if($request['code'] == 1){ - $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'pay_status'=>1,'game_id'=>$request['game_id']))->find(); + $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],/* 'pay_status'=>1, */'game_id'=>$request['game_id']))->find(); if($extend_data){ $this->set_message(1089,"fail","订单号重复,请关闭支付页面重新支付"); } @@ -759,7 +759,7 @@ class WapPayController extends BaseController{ if($game['pay_status'] == 0){ $this->set_message(0,"fail","该游戏暂时无法充值,请联系客服!"); } - $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],'pay_status'=>1,'game_id'=>$request['game_id']))->find(); + $extend_data = M('spend','tab_')->where(array('extend'=>$request['extend'],/* 'pay_status'=>1, */'game_id'=>$request['game_id']))->find(); if($extend_data){ $this->set_message(1089,"fail","订单号重复,请关闭支付页面重新支付"); }