From 2c99f93a0c902c26fcdfd1440e75011427b8f5af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 12 Apr 2021 12:03:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=BC=8F=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/api/Plugs.php | 6 +++--- app/admin/view/config/index.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/admin/controller/api/Plugs.php b/app/admin/controller/api/Plugs.php index da13da5cb..721ab6d60 100644 --- a/app/admin/controller/api/Plugs.php +++ b/app/admin/controller/api/Plugs.php @@ -47,11 +47,11 @@ class Plugs extends Controller { if (AdminService::instance()->isSuper()) if (input('state')) { SystemService::instance()->setRuntime('product'); - sysoplog('系统运维管理', '由开发模式切换为产品模式'); - $this->success('已切换为产品模式!'); + sysoplog('系统运维管理', '由开发模式切换为生产模式'); + $this->success('已切换为生产模式!'); } else { SystemService::instance()->setRuntime('debug'); - sysoplog('系统运维管理', '由产品模式切换为开发模式'); + sysoplog('系统运维管理', '由生产模式切换为开发模式'); $this->success('已切换为开发模式!'); } else { $this->error('只有超级管理员才能操作!'); diff --git a/app/admin/view/config/index.html b/app/admin/view/config/index.html index e655fa413..297b67093 100644 --- a/app/admin/view/config/index.html +++ b/app/admin/view/config/index.html @@ -20,15 +20,15 @@
以开发模式运行 - 以产品模式运行 + 以生产模式运行 以开发模式运行 - 以产品模式运行 + 以生产模式运行

开发模式:开发人员或在功能调试时使用,系统异常时会显示详细的错误信息,同时还会记录操作日志及数据库 SQL 语句信息。

-

产品模式:项目正式部署上线后使用,系统异常时统一显示 “{:config('app.error_message')}”,只记录重要的异常日志信息,强烈推荐上线后使用此模式。

+

生产模式:项目正式部署上线后使用,系统异常时统一显示 “{:config('app.error_message')}”,只记录重要的异常日志信息,强烈推荐上线后使用此模式。