fix(pay): 会员卡密单密码默认关闭,卡密盒与其他弹窗一致显示卡号+密码

会员购买/续费弹窗卡密盒此前仅显示卡密输入,与其他两个弹窗(卡号+密码)
不一致。根因是 pay_vip_pass_charge_only_password 的默认值偏离参考主题:

- PaymentRuntime:vip 类型 only_password 由「未设置即视为开启」改为
  !empty(),与其他两类型同构(参考主题 default false)
- ChargeCard:get_public_options 的 vip 回退值 only_password true→false
- SchemaPayment + recharge.js:会员卡密单密码模式开关 default true→false
- 契约测试同步锁定默认关闭与无 isset 回退
- admin SPA 重新构建

已保存过设置且该键被持久化为开启的站点,需在后台「余额充值 → 卡密
兑换 → 会员卡密单密码模式」手动关闭一次。
This commit is contained in:
2026-09-18 17:26:50 +08:00
parent b3b21df409
commit db0d63b99f
5 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ class ChargeCard {
$types = [
'balance' => ['enabled' => false, 'desc' => '', 'only_password' => false],
'credits' => ['enabled' => false, 'desc' => '', 'only_password' => false],
'vip' => ['enabled' => false, 'desc' => '', 'only_password' => true],
'vip' => ['enabled' => false, 'desc' => '', 'only_password' => false],
];
if ($channel_on && class_exists('\AKSRT\Settings\Settings')) {