From 06a489939a4e6ac4da704666d072862a75f6b3eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=A0=E7=9A=84=E5=90=8D=E5=AD=97?= Date: Fri, 28 Nov 2025 16:58:13 +0800 Subject: [PATCH] 1 --- app/index/controller/Index.php | 4 ++++ 1 file changed, 4 insertions(+) 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'],