更新 v1.2.0版本

This commit is contained in:
LyLme 2022-05-23 15:31:11 +08:00
parent ea0a8d04a5
commit 3a18d4fdc8
5 changed files with 11 additions and 13 deletions

View File

@ -24,18 +24,12 @@ function tjsj($tjname) {
<?php
$update = require('cache.php');
if(!empty($update)) {
if($update['switch'] == true) {
if($update['msg_switch'] == true || getver($update['version']) > getver($conf['version'])) {
echo ' <div class="card"><div class="card-header"><h4>'.$update['title'].'</h4></div><ul class="list-group">';
}
if($update['msg']!='') {
echo $update['msg'];
if($update['switch']) {
if($update['msg_switch'] && !empty($update['msg'])) {
echo '<div class="card"><div class="card-header"><h4>'.$update['title'].'</h4></div><ul class="list-group">'.$update['msg'].'</ul></div>';
}
if(getver($update['version']) > getver($conf['version'])) {
echo $update['update_msg'];
}
if($update['msg_switch'] == true || getver($update['version']) > getver($conf['version'])) {
echo '</ul></div>';
echo '<div class="card"><div class="card-header"><h4>更新提示</h4></div><ul class="list-group">'.$update['update_msg'].'</ul></div>';
}
}
}

View File

@ -37,6 +37,10 @@ if($sqlvn < 10109) {
$version = 'v1.1.9';
$sql = $sql.file_get_contents(ROOT.'install/update4.sql');
}
if($sqlvn < 10200) {
$version = 'v1.2.0';
$sql = $sql.file_get_contents(ROOT.'install/update5.sql');
}
$sql=explode(';',$sql);
for ($i=0;$i<count($sql);$i++) {
if (trim($sql[$i])=='')continue;

View File

@ -1,3 +1,3 @@
<?php
define('VERSION', '1.1.9');
define('VERSION', '1.2.0');
?>

View File

@ -211,7 +211,7 @@ INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`) VALUES
(1, '主页', 'https://www.lylme.com/', 0),
(2, '博客', 'https://blog.lylme.com/', 1),
(3, 'Github', 'https://github.com/lylme', 1),
(4, '关于', 'https://gitee.com/LyLme/lylme_spage/blob/master/README.md', 1),
(4, '关于本站', '/about', 1),
(5, '申请收录', '/apply', 1);
ALTER TABLE `lylme_tags`
ADD PRIMARY KEY (`tag_id`);

View File

@ -38,7 +38,7 @@ INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`) VALUES
(1, '主页', 'https://www.lylme.com/', 0),
(2, '博客', 'https://blog.lylme.com/', 1),
(3, 'Github', 'https://github.com/lylme', 1),
(4, '关于', 'https://gitee.com/LyLme/lylme_spage/blob/master/README.md', 1);
(4, '关于本站', '/about', 1);
ALTER TABLE `lylme_tags`
ADD PRIMARY KEY (`tag_id`);
ALTER TABLE `lylme_tags`