Browse Source

修改错误级别

tbphp 1 year ago
parent
commit
f46df77a5d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      application/common.php

+ 6 - 0
application/common.php

@@ -3,6 +3,12 @@ use app\admin\model\Ad;
 use app\admin\model\Link;
 use app\admin\model\Member;
 use app\admin\model\Setting;
+use \think\Env;
+
+// 正式环境错误级别调整
+if (!Env::get('app_debug')) {
+    error_reporting(E_ERROR);
+}
 
 function success($data, $msg = '')
 {