* Adjust code.

This commit is contained in:
leiyong
2021-01-21 13:07:41 +08:00
parent 39625cb3a1
commit 105769df64
5 changed files with 36 additions and 10 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ class misc extends control
public function checkUpdate($sn = '')
{
session_write_close();
$link = $this->lang->misc->api . "/updater-getLatest-{$this->config->version}-zentao.html?lang=" . str_replace('-', '_', $this->app->getClientLang());
$source = isset($this->config->qcVersion) ? 'qucheng' : 'zentao';
$link = $this->lang->misc->api . "/updater-getLatest-{$this->config->version}-$source.html?lang=" . str_replace('-', '_', $this->app->getClientLang());
$latestVersionList = common::http($link);
$this->loadModel('setting')->setItem('system.common.global.latestVersionList', $latestVersionList);
}