From c2e8cea442729cd90a663f889472177ceee81385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Tue, 15 Mar 2022 17:17:12 +0800 Subject: [PATCH] * adjust code for check update. --- module/misc/control.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/misc/control.php b/module/misc/control.php index e019cd355d..1c78599c81 100644 --- a/module/misc/control.php +++ b/module/misc/control.php @@ -78,7 +78,10 @@ class misc extends control $latestVersionList = common::http($link); - $this->loadModel('setting')->setItem('system.common.global.latestVersionList', $latestVersionList); + if(!isset($this->config->global->latestVersionList) or $this->config->global->latestVersionList != $latestVersionList) + { + $this->loadModel('setting')->setItem('system.common.global.latestVersionList', $latestVersionList); + } } /**