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