From d9c2e23b52be26f139a2bc06bcfd0434a7a6c86d Mon Sep 17 00:00:00 2001 From: wispx <1591788658@qq.com> Date: Sat, 19 Jan 2019 09:56:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89CS?= =?UTF-8?q?S=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/view/common/base.html | 2 ++ install.sql | 5 +++-- update.sql | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/application/index/view/common/base.html b/application/index/view/common/base.html index 7aab1358..092d924e 100644 --- a/application/index/view/common/base.html +++ b/application/index/view/common/base.html @@ -17,6 +17,7 @@ + {$config.custom_style|raw} {block name="header"} @@ -178,5 +179,6 @@ app.update(thatVer, false); {/if} +{$config.statistics_code|raw} diff --git a/install.sql b/install.sql index 35258c7d..2b5ca477 100644 --- a/install.sql +++ b/install.sql @@ -86,7 +86,8 @@ INSERT INTO `lsky_config` (`id`, `key`, `type`, `input_type`, `name`, `title`, ` (43, 'audit', 'text', 'text', 'audit_key', 'Key', NULL, '', ''), (44, 'audit', 'select', 'text', 'audit_index', '内容评级', '1=所有人,2=少年,3=成人', '3', '{\"1\": \"所有人\", \"2\": \"少年\", \"3\": \"成人\"}'), (45, 'other', 'bool', 'checkbox', 'open_api', '开启API', '是否开放接口', '0', ''), -(46, 'basics', 'textarea', 'textarea', 'statistics_code', '统计代码', NULL, '', ''); +(46, 'basics', 'textarea', 'textarea', 'custom_style', '自定义CSS', NULL, '\r\n', ''), +(47, 'basics', 'textarea', 'textarea', 'statistics_code', '统计代码', NULL, '', ''); -- -------------------------------------------------------- @@ -189,7 +190,7 @@ ADD PRIMARY KEY (`id`); -- 使用表AUTO_INCREMENT `lsky_config` -- ALTER TABLE `lsky_config` - MODIFY `id` smallint(6) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47; + MODIFY `id` smallint(6) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48; -- -- 使用表AUTO_INCREMENT `lsky_images` diff --git a/update.sql b/update.sql index 099945da..f85dd398 100644 --- a/update.sql +++ b/update.sql @@ -48,5 +48,7 @@ UPDATE `lsky_images` SET `strategy` = 'uss' WHERE `lsky_images`.`strategy` = 'up UPDATE `lsky_images` SET `strategy` = 'kodo' WHERE `lsky_images`.`strategy` = 'qiniu'; -- v1.4.3 +UPDATE `lsky_config` SET `value` = '1.4.3' WHERE `lsky_config`.`name` = 'system_version'; INSERT IGNORE INTO `lsky_config` (`id`, `key`, `type`, `input_type`, `name`, `title`, `tip`, `value`, `extend`) VALUES -(NULL, 'basics', 'textarea', 'textarea', 'statistics_code', '统计代码', NULL, '', ''); +(NULL, 'basics', 'textarea', 'textarea', 'custom_style', '自定义CSS', NULL, '\r\n', ''), +(NULL, 'basics', 'textarea', 'textarea', 'statistics_code', '统计代码', NULL, '', '');