* admin: fetch the data synchronized from https://www.zentao.net from the zt_config table instead of the zt_block table.

This commit is contained in:
liugang
2023-05-15 15:56:10 +08:00
parent 15b0c475d2
commit a5f990038c
+5 -5
View File
@@ -678,7 +678,7 @@ class adminModel extends model
*/
public function getZentaoData()
{
$zentaoData = $this->loadModel('block')->getZentaoData();
$zentaoData = !empty($this->config->zentaoWebsite) ? $this->config->zentaoWebsite : null;
$data = new stdclass();
$data->hasData = true;
@@ -709,10 +709,10 @@ class adminModel extends model
}
else
{
$news = json_decode($zentaoData['news']);
$publicclass = json_decode($zentaoData['publicclass']);
$plugins = json_decode($zentaoData['plugin']);
$patches = json_decode($zentaoData['patch']);
$news = json_decode($zentaoData->news);
$publicclass = json_decode($zentaoData->publicclass);
$plugins = json_decode($zentaoData->plugin);
$patches = json_decode($zentaoData->patch);
if(common::checkNotCN()) array_pop($plugins);
}