From 098e81d1c81b9b02a57883ed1cb4264a5687e2bc Mon Sep 17 00:00:00 2001 From: Suika99 <290760339@qq.com> Date: Fri, 2 Jul 2021 19:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E4=BA=86=E4=B8=AAbody=E5=8C=85?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=BA=E7=A9=BA=E7=9A=84bug=EF=BC=8C?= =?UTF-8?q?=E8=99=BD=E7=84=B6=E4=B8=8D=E7=9F=A5=E9=81=93=E5=8F=91=E7=94=9F?= =?UTF-8?q?=E4=BA=86=E5=95=A5=EF=BC=8C=E4=BD=86=E5=AE=83=E7=A1=AE=E5=AE=9E?= =?UTF-8?q?=E6=98=AF=E8=A2=AB=E4=BF=AE=E5=A5=BD=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 12 +++++------- plugin_ai_false/ai_false.go | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 232c490e06..bbc0bff8a6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,13 +1,7 @@ - - - - - - - + + + + true diff --git a/plugin_ai_false/ai_false.go b/plugin_ai_false/ai_false.go index 0dffa3f6d0..b042185280 100644 --- a/plugin_ai_false/ai_false.go +++ b/plugin_ai_false/ai_false.go @@ -16,7 +16,7 @@ import ( ) func init() { // 插件主体 - zero.OnFullMatchGroup([]string{"检查身体", "自检", "启动自检", "系统状态"}). + zero.OnFullMatchGroup([]string{"检查身体", "自检", "启动自检", "系统状态"}, zero.AdminPermission). Handle(func(ctx *zero.Ctx) { ctx.SendChain(message.Text( "* CPU占用率: ", getCpuPercent(), "%\n",