平台币充值 重复extend

master
tpingzhang 5 years ago
parent d19fd08b97
commit c1897bb610

@ -658,7 +658,7 @@ class AppleController extends BaseController{
// $this->set_message(0,"fail","充值金额有误"); // $this->set_message(0,"fail","充值金额有误");
redirect(U('Spend/notice_v1',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'充值金额有误')));exit; 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){ if($extend_data){
// $this->set_message(1089,"fail","订单号重复,请关闭支付页面重新支付"); // $this->set_message(1089,"fail","订单号重复,请关闭支付页面重新支付");
redirect(U('Spend/notice_v1',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'订单号重复,请关闭支付页面重新支付')));exit; redirect(U('Spend/notice_v1',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'订单号重复,请关闭支付页面重新支付')));exit;

@ -438,7 +438,7 @@ class PayController extends BaseController
$this->set_message(1011, "fail", "充值金额有误"); $this->set_message(1011, "fail", "充值金额有误");
} }
$request['price'] = abs($request['price']); $request['price'] = abs($request['price']);
$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){ if($extend_data){
$this->set_message(1089,"fail","订单号重复,请关闭支付页面重新支付"); $this->set_message(1089,"fail","订单号重复,请关闭支付页面重新支付");
} }

Loading…
Cancel
Save