From 96fbe7d219bc4dc84c9caad6a5df87f24a9d1ad4 Mon Sep 17 00:00:00 2001 From: hdm Date: Thu, 11 May 2023 16:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E6=A8=A1=E5=9D=97=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E4=B8=8A=E9=94=99=E8=AF=AF=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/contract/view/index/add.html | 2 +- app/home/controller/Index.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/contract/view/index/add.html b/app/contract/view/index/add.html index cce454c..2599dac 100644 --- a/app/contract/view/index/add.html +++ b/app/contract/view/index/add.html @@ -149,7 +149,7 @@
- +
diff --git a/app/home/controller/Index.php b/app/home/controller/Index.php index 606a218..a53282a 100644 --- a/app/home/controller/Index.php +++ b/app/home/controller/Index.php @@ -311,7 +311,14 @@ class Index extends BaseController public function edit_password() { if (request()->isAjax()) { - $param = get_params(); + + //下面部分代码可删除-------------- + if($_SERVER['HTTP_HOST']=='oa.gougucms.com'){ + return to_assign(1, 'Bad Man,为什么总想着改别人的密码?已记录IP,抓住你了!'); + } + //上面部分代码可删除-------------- + + $param = get_params(); try { validate(AdminCheck::class)->scene('editPwd')->check($param); } catch (ValidateException $e) {