From 3435217710130ce2360140a25a3f6c6913234400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AD=E9=9B=B6?= Date: Mon, 5 Dec 2022 21:51:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0v1.5.0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/function.php | 5 ++--- include/updbase.php | 3 +++ include/version.php | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/function.php b/include/function.php index 0d6cf13..38b743d 100644 --- a/include/function.php +++ b/include/function.php @@ -114,9 +114,8 @@ function background() { } //程序更新 function update() { - $update_host = 'cdn.lylme.com'; - //程序更新服务器,请勿删除和修改,否则将导致无法接收版本更新和程序报错 - @$update = json_decode(file_get_contents('https://' . $update_host . '/lylmes_page/update.json') , true); + $update_host = 'https://cdn.lylme.com/api/update'; //程序更新服务器,请勿删除和修改,否则将导致无法接收版本更新和程序报错 + @$update = json_decode(get_curl($update_host.'?ver='.VERSION.'&domain='.$_SERVER['HTTP_HOST']),true); return $update; } function getver($ver) { diff --git a/include/updbase.php b/include/updbase.php index 64dacf7..d394123 100644 --- a/include/updbase.php +++ b/include/updbase.php @@ -50,6 +50,9 @@ if($sqlvn < 10300) { if($sqlvn < 10304) { $version = 'v1.3.4'; } +if($sqlvn < 10500) { + $version = 'v1.5.0'; +} $sql=explode(';',$sql); for ($i=0;$i \ No newline at end of file