From b21365b2054e538fe7e8a1cdb4069cd46408824e Mon Sep 17 00:00:00 2001 From: 15090180611 <215509543@qq.com> Date: Fri, 17 Jan 2025 17:50:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A1=86=E6=9E=B6=E7=BC=93?= =?UTF-8?q?=E5=AD=98bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/view/school/help/article/add.html | 2 +- application/admin/view/school/help/article/edit.html | 2 +- application/config.php | 4 ++-- public/assets/js/fast.js | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/application/admin/view/school/help/article/add.html b/application/admin/view/school/help/article/add.html index a452e73..bf54661 100644 --- a/application/admin/view/school/help/article/add.html +++ b/application/admin/view/school/help/article/add.html @@ -3,7 +3,7 @@
- +
diff --git a/application/admin/view/school/help/article/edit.html b/application/admin/view/school/help/article/edit.html index da01661..a58ceb6 100644 --- a/application/admin/view/school/help/article/edit.html +++ b/application/admin/view/school/help/article/edit.html @@ -3,7 +3,7 @@
- +
diff --git a/application/config.php b/application/config.php index 42e1f16..d1aa580 100644 --- a/application/config.php +++ b/application/config.php @@ -18,7 +18,7 @@ return [ // 应用命名空间 'app_namespace' => 'app', // 应用调试模式 - 'app_debug' => Env::get('app.debug', true), + 'app_debug' => Env::get('app.debug', false), // 应用Trace 'app_trace' => Env::get('app.trace', false), // 应用模式状态 @@ -159,7 +159,7 @@ return [ // 错误显示信息,非调试模式有效 'error_message' => '你所浏览的页面暂时无法访问', // 显示错误信息 - 'show_error_msg' => true, + 'show_error_msg' => false, // 异常处理handle类 留空使用 \think\exception\Handle 'exception_handle' => '', // +---------------------------------------------------------------------- diff --git a/public/assets/js/fast.js b/public/assets/js/fast.js index 6256f19..9c808a2 100644 --- a/public/assets/js/fast.js +++ b/public/assets/js/fast.js @@ -102,8 +102,12 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine }, //获取修复后可访问的cdn链接 cdnurl: function (url, domain) { + if (typeof url === 'undefined') { + return url; + } var rule = new RegExp("^((?:[a-z]+:)?\\/\\/|data:image\\/)", "i"); var cdnurl = Config.upload.cdnurl; + console.log(url,domain); if (typeof domain === 'undefined' || domain === true || cdnurl.indexOf("/") === 0) { url = rule.test(url) || (cdnurl && url.indexOf(cdnurl) === 0) ? url : cdnurl + url; }