Skip to content

Commit

Permalink
✨ 取消自动更新检测
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisp X committed Dec 20, 2021
1 parent c2ae231 commit 10073b8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
5 changes: 0 additions & 5 deletions application/index/view/common/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@
});
});
</script>
{if $user and $user.is_admin and !cookie('?no_update')}
<script>
app.getLastVer(ver, false);
</script>
{/if}
{$config.statistics_code|raw}
</body>
</html>
2 changes: 1 addition & 1 deletion application/sql/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,6 @@ INSERT INTO `lsky_config` (`id`, `key`, `type`, `input_type`, `name`, `title`, `
(NULL, 'audit', 'text', 'text', 'audit_key', 'Key', NULL, '', ''),
(NULL, 'audit', 'select', 'text', 'audit_index', '内容评级', '1=所有人,2=少年,3=成人', '3', '{\"1\": \"所有人\", \"2\": \"少年\", \"3\": \"成人\"}'),

(NULL, '', 'text', 'text', 'system_version', '系统版本', NULL, '1.6.3', '');
(NULL, '', 'text', 'text', 'system_version', '系统版本', NULL, '1.6.4', '');

INSERT INTO `lsky_group` (`id`, `strategy`, `name`, `default`, `update_time`, `create_time`) VALUES (NULL, 'local', '默认组', '1', '0', '0');
5 changes: 4 additions & 1 deletion application/sql/update.sql
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,7 @@ UPDATE `lsky_config` SET `value` = '1.6.1' WHERE `lsky_config`.`name` = 'system_
-- v1.6.3
UPDATE `lsky_config` SET `value` = '1.6.3' WHERE `lsky_config`.`name` = 'system_version';
INSERT IGNORE INTO `lsky_config` (`id`, `key`, `type`, `input_type`, `name`, `title`, `tip`, `value`, `extend`) VALUES
(NULL, 'other', 'bool', 'checkbox', 'open_gallery', '开启画廊', '开启画廊功能,游客上传的图片将会出现在画廊中', '', '');
(NULL, 'other', 'bool', 'checkbox', 'open_gallery', '开启画廊', '开启画廊功能,游客上传的图片将会出现在画廊中', '', '');

-- v1.6.4
UPDATE `lsky_config` SET `value` = '1.6.4' WHERE `lsky_config`.`name` = 'system_version';
6 changes: 0 additions & 6 deletions public/static/app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,6 @@ var app = {
{
text: '忽略'
},
{
text: '不再提示',
onClick: function () {
app.cookie.set('no_update', true, 30, '/');
}
},
{
text: '立即升级',
close: false,
Expand Down

0 comments on commit 10073b8

Please sign in to comment.