fix(modal): align rollout schema contract

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-04 21:31:55 +08:00
co-authored by Claude Fable 5
parent 113a6bcab0
commit 1f004aea46
10 changed files with 40 additions and 39 deletions
@@ -0,0 +1,56 @@
<?php
/**
* @package AKSRT
*/
namespace AKSRT\Admin\Schema;
defined('ABSPATH') || exit;
class SchemaToolsFrontendModalRollout {
public static function build(): array {
return [
'key' => 'frontend-modal-rollout',
'title' => '前台弹窗灰度',
'version' => '1.0.0',
'option_key' => 'aksrt_settings',
'groups' => [
[
'key' => 'rollout',
'title' => '弹窗新流程开关',
'fields' => [
[
'key' => 'frontend_modal_rollout_identity',
'label' => '官方认证新流程',
'type' => 'switch',
'default' => false,
'help' => '启用统一弹窗运行时与认证快照流程。',
],
[
'key' => 'frontend_modal_rollout_badge',
'label' => '徽章新流程',
'type' => 'switch',
'default' => false,
'help' => '启用统一 JSON 徽章流程和短缓存。',
],
[
'key' => 'frontend_modal_rollout_order',
'label' => '订单新流程',
'type' => 'switch',
'default' => false,
'help' => '启用订单详情快速开壳与状态同步流程。',
],
[
'key' => 'frontend_modal_rollout_vip',
'label' => '会员支付新流程',
'type' => 'switch',
'default' => false,
'help' => '启用统一会员购买、支付和结果同步流程。',
],
],
],
],
];
}
}