diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index e7706b9..0129da8 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -26,6 +26,10 @@ class Index extends BaseController exit(); return error('您的IP已被禁止充值,如有疑问请联系管理员'); } + $order = MallOrder::where('ip',$ip)->where('start_time','>',time()-5)->find(); + if (!empty($order)){ + return error('请勿频繁提交订单,请稍后再试'); + } $rid = Uuids::getUuid4(); $data = [ 'money'=>$param['amount'],