From 31798f654b430a29412bf6a3768272d1e719ec78 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Tue, 19 Nov 2019 09:50:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=B8=81=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/WapPayController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Sdk/Controller/WapPayController.class.php b/Application/Sdk/Controller/WapPayController.class.php index 293e97f7..aa803fbb 100644 --- a/Application/Sdk/Controller/WapPayController.class.php +++ b/Application/Sdk/Controller/WapPayController.class.php @@ -574,6 +574,7 @@ class WapPayController extends BaseController{ $request['game_id'] = I('request.game_id'); $type = "platform"; } + $request['price'] = intval($request['price']); $userToken = I('request.user_token'); /* $request['user_id'] = 232; $request['game_id'] = 78; @@ -595,7 +596,7 @@ class WapPayController extends BaseController{ if($game['pay_status'] == 0){ redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'该游戏暂时无法充值,请联系客服!')));exit; } - if(!is_int($request['price']) || $request['price']*1<=0){ + if($request['price']*1<=0){ redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'is_platform'=> 1,'msg'=>'充值金额有误', 'user_token' => $userToken)));exit; }