diff --git a/docs/MULTI_PUBLIC_IPV4_POOLS.md b/docs/MULTI_PUBLIC_IPV4_POOLS.md index f1e0158f..bf401768 100644 --- a/docs/MULTI_PUBLIC_IPV4_POOLS.md +++ b/docs/MULTI_PUBLIC_IPV4_POOLS.md @@ -41,7 +41,7 @@ ## 用户付费更换 IP -超级管理员可在“配置文件 → 云实例计费”设置单次更换公网 IP 的 USD 价格。默认值 `0.00` 表示关闭用户自助入口;修改价格只影响之后的新请求,浏览器必须回传刚刚确认的金额,价格已变化时服务端拒绝提交并要求刷新。 +超级管理员可在“站点设置 → 云实例计费”设置单次更换公网 IP 的 USD 价格。默认值 `0.00` 表示关闭用户自助入口;修改价格只影响之后的新请求,浏览器必须回传刚刚确认的金额,价格已变化时服务端拒绝提交并要求刷新。 用户只能为自己仍在服务期内的面板云镜像实例提交请求。用户页面只显示单次更换费用,不公开候选 IP、候选数量、当前余额或地址池标识,也不接受用户指定目标地址。提交后由服务端从实例当前宿主机、同一网络线路中状态为 `active` 且已经 `applied` 的地址池自动选择 IP;目标必须在账本中处于 `available`,且没有 reservation、instance 或 operation 关联,已禁用、已分配、正在更换或结果不确定的地址不会被选中。管理员虚拟机管理仍保留明确选择目标 IP 的能力。 diff --git a/web/resources/views/venix/admin/config.tpl b/web/resources/views/venix/admin/config.tpl index 63b9689e..157f0973 100644 --- a/web/resources/views/venix/admin/config.tpl +++ b/web/resources/views/venix/admin/config.tpl @@ -1,10 +1,10 @@ -{assign var=admin_title value='配置文件'} +{assign var=admin_title value='站点设置'} {assign var=admin_active value='config'} {include file='admin/static_header.tpl'}
-

配置文件

+

站点设置

管理站点基础参数、域名主题分配、账户安全和邮件验证配置。

diff --git a/web/resources/views/venix/admin/static_header.tpl b/web/resources/views/venix/admin/static_header.tpl index bd60116c..9e3d3df4 100644 --- a/web/resources/views/venix/admin/static_header.tpl +++ b/web/resources/views/venix/admin/static_header.tpl @@ -153,7 +153,7 @@
  • 提现管理
  • 工单系统
  • -
  • 配置文件
  • +
  • 站点设置
  • diff --git a/web/tests/AdminSiteSettingsNamingTest.php b/web/tests/AdminSiteSettingsNamingTest.php new file mode 100644 index 00000000..282e29b6 --- /dev/null +++ b/web/tests/AdminSiteSettingsNamingTest.php @@ -0,0 +1,33 @@ +站点设置') + && !str_contains($header, '配置文件'), + 'The administrator navigation must call the online settings page site settings.'); +$assert(str_contains($config, "admin_title value='站点设置'") + && str_contains($config, '>站点设置') + && !str_contains($config, "admin_title value='配置文件'") + && !str_contains($config, '>配置文件'), + 'The site settings page still uses the misleading configuration-file title.'); +$assert(str_contains($docs, '站点设置 → 云实例计费'), + 'Administrator navigation documentation is not aligned with the new label.'); + +echo "Administrator site settings naming checks passed.\n";