feat(fuc-xb): prepare isolated staging theme and VIP auto upgrades
Port the Fuc 0.12.0 frontend and default-off VIP plugin. Include the previously approved password-reset token revocation. Deploy only to an independent FUC-XB test instance; no production cutover.
This commit is contained in:
1 parent
3633ba32a6
commit
0501711267
72 files changed
+2798
-179
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace Plugin\VipLoyalty;
|
||||
use App\Services\Plugin\PluginConfigService;
|
||||
// Keep the native administrator plugin editor; validate only this plugin's payload.
|
||||
final class ValidatedConfigService extends PluginConfigService {
|
||||
public function updateConfig(string $pluginCode,array $config): bool {
|
||||
if($pluginCode!=='vip_loyalty')return parent::updateConfig($pluginCode,$config);
|
||||
$values=app(Settings::class)->validate(array_replace($this->getDbConfig($pluginCode),$config));
|
||||
$saved=parent::updateConfig($pluginCode,$values);
|
||||
if(!$values['enabled'])app(Service::class)->suspend();
|
||||
return $saved;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user