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:
@@ -124,7 +124,8 @@ class PaymentRuntime {
|
||||
'vip' => [
|
||||
'enabled' => !empty($settings['pay_vip_pass_charge_s']),
|
||||
'desc' => sanitize_textarea_field((string) ($settings['pay_vip_pass_charge_desc'] ?? '')),
|
||||
'only_password' => !isset($settings['pay_vip_pass_charge_only_password']) || !empty($settings['pay_vip_pass_charge_only_password']),
|
||||
// 默认非单密码(卡号+密码),对齐参考主题 pay_vip_pass_charge_only_password 默认 false。
|
||||
'only_password' => !empty($settings['pay_vip_pass_charge_only_password']),
|
||||
],
|
||||
],
|
||||
'points_exchange' => [
|
||||
|
||||
Reference in New Issue
Block a user