feat(forum): topic pay-hide and points view gates

Align native topic meta box with runtime visibility contract
(_aksrt_credits_cost / pay / VIP / hide-part), blank denied content
payloads, and mark gap-matrix product + topic pay items done.
This commit is contained in:
2026-07-15 10:19:46 +08:00
parent 74bde18880
commit bccb14a487
4 changed files with 207 additions and 28 deletions
+3 -1
View File
@@ -327,8 +327,10 @@ function aksrt_register_forum_topic_meta() {
'_aksrt_allow_view' => ['type' => 'string', 'default' => 'public'],
'_aksrt_pay_price' => ['type' => 'number', 'default' => 0],
'_aksrt_pay_vip_price' => ['type' => 'number', 'default' => 0],
'_aksrt_pay_credits' => ['type' => 'integer', 'default' => 0],
'_aksrt_pay_credits' => ['type' => 'integer', 'default' => 0], // legacy alias of credits_cost
'_aksrt_credits_cost' => ['type' => 'integer', 'default' => 0], // runtime unlock price
'_aksrt_pay_hide_part' => ['type' => 'integer', 'default' => 0],
'_aksrt_visibility_roles' => ['type' => 'array', 'default' => []],
// 状态工作流扩展位 (Wave4)
'_aksrt_closed' => ['type' => 'integer', 'default' => 0],