From 57f9f14c8367d88e1e05094000bb621238010edd Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 6 Sep 2017 16:14:01 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E6=B5=8B=E8=AF=95=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=A6=81=E6=AD=A2=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/route.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/route.php b/application/route.php index 29eedc7d9..d17ac300f 100644 --- a/application/route.php +++ b/application/route.php @@ -14,6 +14,9 @@ /* 测试环境禁止操作路由绑定 */ think\Route::post([ + 'admin/index/pass' => function () { + return json(['code' => 0, 'msg' => '测试环境禁修改用户密码!']); + }, 'admin/config/index' => function () { return json(['code' => 0, 'msg' => '测试环境禁修改系统配置操作!']); }, @@ -43,13 +46,13 @@ think\Route::post([ }, 'wechat/menu/edit' => function () { return json(['code' => 0, 'msg' => '测试环境禁止修改微信菜单操作!']); - } + }, ]); think\Route::get([ 'wechat/menu/cancel' => function () { return json(['code' => 0, 'msg' => '测试环境禁止删除微信菜单操作!']); - } + }, ]); return [];