更新v1.5.0版本

This commit is contained in:
六零 2022-12-05 21:51:13 +08:00
parent e85959919b
commit 3435217710
3 changed files with 6 additions and 4 deletions

View File

@ -114,9 +114,8 @@ function background() {
} }
//程序更新 //程序更新
function update() { function update() {
$update_host = 'cdn.lylme.com'; $update_host = 'https://cdn.lylme.com/api/update'; //程序更新服务器,请勿删除和修改,否则将导致无法接收版本更新和程序报错
//程序更新服务器,请勿删除和修改,否则将导致无法接收版本更新和程序报错 @$update = json_decode(get_curl($update_host.'?ver='.VERSION.'&domain='.$_SERVER['HTTP_HOST']),true);
@$update = json_decode(file_get_contents('https://' . $update_host . '/lylmes_page/update.json') , true);
return $update; return $update;
} }
function getver($ver) { function getver($ver) {

View File

@ -50,6 +50,9 @@ if($sqlvn < 10300) {
if($sqlvn < 10304) { if($sqlvn < 10304) {
$version = 'v1.3.4'; $version = 'v1.3.4';
} }
if($sqlvn < 10500) {
$version = 'v1.5.0';
}
$sql=explode(';',$sql); $sql=explode(';',$sql);
for ($i=0;$i<count($sql);$i++) { for ($i=0;$i<count($sql);$i++) {
if (trim($sql[$i])=='')continue; if (trim($sql[$i])=='')continue;

View File

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