* Fix setItem to zt_config.
This commit is contained in:
@@ -264,14 +264,14 @@ class blockModel extends model
|
||||
$blocks = $this->lang->block->default[$type]['project'];
|
||||
|
||||
/* Mark project block has init. */
|
||||
$this->loadModel('setting')->setItem("$account.$module.{$type}common.blockInited@$vision", true);
|
||||
$this->loadModel('setting')->setItem("$account.$module.{$type}common.blockInited@$vision", '1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$blocks = $module == 'my' ? $this->lang->block->default[$flow][$module] : $this->lang->block->default[$module];
|
||||
|
||||
/* Mark this app has init. */
|
||||
$this->loadModel('setting')->setItem("$account.$module.common.blockInited@$vision", true);
|
||||
$this->loadModel('setting')->setItem("$account.$module.common.blockInited@$vision", '1');
|
||||
}
|
||||
|
||||
$this->loadModel('setting')->setItem("$account.$module.block.initVersion", $this->config->block->version);
|
||||
|
||||
@@ -7,12 +7,12 @@ if(defined('IN_USE') or (defined('RUN_MODE') and RUN_MODE == 'api'))
|
||||
foreach($xxItems as $xxItem) $xxConfig[$xxItem->key] = $xxItem->value;
|
||||
if(empty($xxConfig['key']))
|
||||
{
|
||||
$this->setting->setItem('system.common.xuanxuan.turnon', 0);
|
||||
$this->setting->setItem('system.common.xuanxuan.turnon', '0');
|
||||
$this->setting->setItem('system.common.xuanxuan.key', $this->setting->computeSN());
|
||||
}
|
||||
if(!isset($xxConfig['chatPort'])) $this->setting->setItem('system.common.xuanxuan.chatPort', 11444);
|
||||
if(!isset($xxConfig['commonPort'])) $this->setting->setItem('system.common.xuanxuan.commonPort', 11443);
|
||||
if(!isset($xxConfig['chatPort'])) $this->setting->setItem('system.common.xuanxuan.chatPort', '11444');
|
||||
if(!isset($xxConfig['commonPort'])) $this->setting->setItem('system.common.xuanxuan.commonPort', '11443');
|
||||
if(!isset($xxConfig['ip'])) $this->setting->setItem('system.common.xuanxuan.ip', '0.0.0.0');
|
||||
if(!isset($xxConfig['uploadFileSize'])) $this->setting->setItem('system.common.xuanxuan.uploadFileSize', 20);
|
||||
if(!isset($xxConfig['uploadFileSize'])) $this->setting->setItem('system.common.xuanxuan.uploadFileSize', '20');
|
||||
if(!isset($xxConfig['https']) and !isset($xxConfig['isHttps'])) $this->setting->setItem('system.common.xuanxuan.https', 'off');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user