* adjust for upgrade.
This commit is contained in:
@@ -3092,13 +3092,6 @@ class upgradeModel extends model
|
||||
public function updateXX_11_5()
|
||||
{
|
||||
$this->saveLogs('Run Method ' . __FUNCTION__);
|
||||
$hasHttps = $this->loadModel('setting')->getItem("owner=system&module=common§ion=xuanxuan&key=https");
|
||||
if(empty($hasHttps))
|
||||
{
|
||||
$this->dao->update(TABLE_CONFIG)->set('`key`')->eq('https')->where('owner')->eq('system')->andWhere('module')->eq('common')->andWhere('section')->eq('xuanxuan')->andWhere('`key`')->eq('isHttps')->exec();
|
||||
$this->saveLogs($this->dao->get());
|
||||
}
|
||||
|
||||
$groups = $this->dao->select('`group`')->from(TABLE_GROUPPRIV)->where('module')->eq('admin')->andWhere('method')->eq('xuanxuan')->fetchPairs('group', 'group');
|
||||
foreach($groups as $groupID)
|
||||
{
|
||||
|
||||
@@ -11,5 +11,5 @@ if(empty($xxConfig['key']))
|
||||
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['https'])) $this->setting->setItem('system.common.xuanxuan.https', 'off');
|
||||
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