first(); if ($row) { $setting = Base::string2array($row->setting); // DooPush 改为三档,升级后统一使用系统配置;原自定义凭证保留,需要时可切回「自定义」。 $setting['doopush'] = 'system'; foreach (['push', 'ios_key', 'ios_secret', 'android_key', 'android_secret'] as $key) { unset($setting[$key]); } $row->updateInstance(['setting' => $setting]); $row->save(); } } public function down(): void { // 删除表无法恢复 } };