* Finish task#9092.

This commit is contained in:
leiyong
2021-01-29 09:16:10 +08:00
parent f885d7afd6
commit f0d0183987
7 changed files with 51 additions and 29 deletions
+8 -1
View File
@@ -66,11 +66,18 @@ class misc extends control
public function checkUpdate($sn = '')
{
session_write_close();
$website = $this->lang->misc->api;
if(isset($this->config->qcVersion)) $website = $this->lang->misc->qucheng;
if(isset($this->config->isINT)) $website = $this->lang->misc->enApi;
$source = isset($this->config->qcVersion) ? 'qucheng' : 'zentao';
$lang = str_replace('-', '_', $this->app->getClientLang());
$link = $this->lang->misc->api . "/updater-getLatest-{$this->config->version}-$source-$lang.html";
$link = $website . "/updater-getLatest-{$this->config->version}-$source-$lang.html";
$latestVersionList = common::http($link);
$this->loadModel('setting')->setItem('system.common.global.latestVersionList', $latestVersionList);
}