feat(payment): align VIP/balance/order schema keys with Zibll

Extract payment readers into AKSRT_Settings_Payment_Runtime and store
canonical Zibll option IDs (pay_user_vip_*, pay_balance_*, pay_box_position,
pay_mark, pay_rebate_*, pay_income_*) in aksrt_settings with no legacy
payment_* dual-read. Update PHP/JS payment schemas and VIP sidebar gate.
This commit is contained in:
kate522 committed 2026-07-11 17:13:29 +08:00
1 parent 80d2c5fbc3
commit d9fbacbce6
12 files changed
+703 -554

No files matched your search

@@ -133,42 +133,42 @@ trait AKSRT_Settings_Credits_Payment_Groups {
* }
*/
public static function get_paid_content_settings(): array {
return AKSRT_Settings_Home_Cms::get_paid_content_settings();
return AKSRT_Settings_Payment_Runtime::get_paid_content_settings();
}
/**
* @return array{enabled:bool,mode:string,packages_raw:string,package_count:int,help_text:string}
*/
public static function get_payment_recharge_settings(): array {
return AKSRT_Settings_Home_Cms::get_payment_recharge_settings();
return AKSRT_Settings_Payment_Runtime::get_payment_recharge_settings();
}
/**
* @return array{enabled:bool,name:string,badge_text:string,packages_raw:string,package_count:int,help_text:string}
*/
public static function get_payment_vip_settings(): array {
return AKSRT_Settings_Home_Cms::get_payment_vip_settings();
return AKSRT_Settings_Payment_Runtime::get_payment_vip_settings();
}
/**
* @return array{enabled:bool,share_ratio:int,settlement_threshold:int,cycle_days:int,note:string}
*/
public static function get_payment_revenue_settings(): array {
return AKSRT_Settings_Home_Cms::get_payment_revenue_settings();
return AKSRT_Settings_Payment_Runtime::get_payment_revenue_settings();
}
/**
* @return array{enabled:bool,ratio:int,window_days:int,require_paid_order:bool,note:string}
*/
public static function get_payment_affiliate_settings(): array {
return AKSRT_Settings_Home_Cms::get_payment_affiliate_settings();
return AKSRT_Settings_Payment_Runtime::get_payment_affiliate_settings();
}
/**
* @return array{mode:string,test_enabled:bool,manual_review:bool,callback_secret:string,help_text:string}
*/
public static function get_payment_gateway_settings(): array {
return AKSRT_Settings_Home_Cms::get_payment_gateway_settings();
return AKSRT_Settings_Payment_Runtime::get_payment_gateway_settings();
}
/**
@@ -177,7 +177,7 @@ trait AKSRT_Settings_Credits_Payment_Groups {
* @return array{prefix:string,expiry:int,show_user:bool,show_paycount:bool,no_logged_in:bool,cookie_day:int,no_logged_remind:bool,wait_float:bool,order_max_minutes:int,mark:string,box_position:string,free_logged_show:bool,show_ip:bool,show_device:bool,show_order_no:bool,show_create_time:bool,show_pay_time:bool,status_texts:array,service:array}
*/
public static function get_order_settings(): array {
return AKSRT_Settings_Home_Cms::get_order_settings();
return AKSRT_Settings_Payment_Runtime::get_order_settings();
}
/**
@@ -186,7 +186,7 @@ trait AKSRT_Settings_Credits_Payment_Groups {
* @return array{enabled:bool,desc:string,type:string,prefix:string,length:int,batch_size:int,max_redeem:int,expiry_days:int,amount:int,vip_days:int,credits:int,redeem_page:string,success_msg:string,fail_msg:string}
*/
public static function get_card_pass_settings(): array {
return AKSRT_Settings_Home_Cms::get_card_pass_settings();
return AKSRT_Settings_Payment_Runtime::get_card_pass_settings();
}
/**
@@ -195,6 +195,6 @@ trait AKSRT_Settings_Credits_Payment_Groups {
* @return array{min_amount:int,service_charge_rate:int,text:string}
*/
public static function get_withdrawal_settings(): array {
return AKSRT_Settings_Home_Cms::get_withdrawal_settings();
return AKSRT_Settings_Payment_Runtime::get_withdrawal_settings();
}
}