|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|