From 7c29da88f512a2b4896945a847422de41489d6cc Mon Sep 17 00:00:00 2001 From: Devil Date: Tue, 20 Jul 2021 23:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=20=E5=B8=83=E5=B1=80=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/PluginsAdminService.php | 3 +++ public/static/common/js/layout.admin.js | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/service/PluginsAdminService.php b/app/service/PluginsAdminService.php index 8b6fad5c2..62292c34f 100755 --- a/app/service/PluginsAdminService.php +++ b/app/service/PluginsAdminService.php @@ -149,6 +149,9 @@ class PluginsAdminService // 添加数据 if(Db::name('Plugins')->insertGetId($data) > 0) { + // 附件同步到数据库 + ResourcesService::AttachmentDiskFilesToDb('plugins_'.$plugins); + // 插件事件回调 PluginsService::PluginsEventCall($plugins, 'Install', $params); diff --git a/public/static/common/js/layout.admin.js b/public/static/common/js/layout.admin.js index f40c1e8ed..c09f652d1 100644 --- a/public/static/common/js/layout.admin.js +++ b/public/static/common/js/layout.admin.js @@ -131,7 +131,6 @@ function StructureDragHtmlCreate(value) html += ''; } html += ''; - console.log(html) return html; } @@ -166,7 +165,6 @@ function RenovationModuleDragHtmlCreate(value) html += '
请配置'+layout_module_type_arr[value]+'
'; html += ''; html += ''; - console.log(html) return html; } @@ -2134,7 +2132,7 @@ $(function() var fields_dv = { "goods_order_by_type": 0, "goods_order_by_rule": 0, - "view_list_show_style": 0, + "view_list_show_style": 'routine', "view_list_number_sm": 2, "view_list_number_md": 5, "view_list_number_lg": 5, @@ -2148,7 +2146,7 @@ $(function() } // 展示模式默认值处理、默认常规模式 - if(json.view_list_show_style != undefined && (json.view_list_show_style || null) == null) + if((json.view_list_show_style || null) == null) { json['view_list_show_style'] = 'routine'; }