* [bug#69262,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2026-01-21 07:08:10 +00:00
parent 0d3f0ea780
commit 265021709c
+10
View File
@@ -13280,6 +13280,16 @@ class upgradeModel extends model
public function disableFeaturesByMode(): bool
{
if($this->config->systemMode != 'light') return true;
if($this->config->edition == 'ipd')
{
$disabledFeatures = $this->dao->select('value')->from(TABLE_CONFIG)->where('`key`')->eq('disabledFeatures')->andWhere('owner')->eq('system')->fetch('value');
if($disabledFeatures)
{
$disabledFeatures = str_replace(',waterfallplus', '', $disabledFeatures);
$this->dao->update(TABLE_CONFIG)->set('value')->eq($disabledFeatures)->where('`key`')->eq('disabledFeatures')->andWhere('owner')->eq('system')->exec();
}
return true;
}
$this->loadModel('custom')->disableFeaturesByMode('light');
return true;