* adjust for upgrade.

This commit is contained in:
wangyidong
2019-05-09 17:02:18 +08:00
parent a885030558
commit 60dc40cdba
2 changed files with 1 additions and 8 deletions
-7
View File
@@ -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&section=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');