fix: expose referral code operations in admin

This commit is contained in:
2026-08-17 13:59:52 +08:00
parent 01378cfa8b
commit 9d4ce5d036
2 changed files with 16 additions and 1 deletions
@@ -63,6 +63,18 @@ export const usersSection = {
canonicalDomain: 'users',
section: 'credits',
}),
customPage({
key: 'users-referral-codes',
name: 'UsersReferralCodes',
label: '推广码运营',
route: '/users/referral-codes',
component: 'NativeOpsRedirect',
status: 'redirect',
title: '推广码运营',
desc: '按用户管理统一 Ref 推广码,查看绑定统计,并执行生成、禁用或重新生成。',
nativeAdminPath: 'users.php?page=aksrt_referral_codes',
secondaryEntry: true,
}),
customPage({
key: 'users-verify',
name: 'UsersVerify',
+4 -1
View File
@@ -36,6 +36,10 @@ function createRouteMeta(page) {
meta.canonicalDomain = page.canonicalDomain
}
if (page.nativeAdminPath) {
meta.nativeAdminPath = page.nativeAdminPath
}
if (page.section) {
meta.section = page.section
}
@@ -80,7 +84,6 @@ const NATIVE_OPS_REDIRECTS = [
{ path: '/payment/income', title: '创作分成运营', nativeAdminPath: 'admin.php?page=aksrt_income' },
{ path: '/payment/rebate', title: '返佣管理', nativeAdminPath: 'admin.php?page=aksrt_rebate' },
{ path: '/users/messages', title: '消息中心', nativeAdminPath: 'users.php?page=aksrt_messages' },
{ path: '/users/referral-codes', title: '推广码运营', nativeAdminPath: 'users.php?page=aksrt_referral_codes' },
{ path: '/users/ban', title: '禁封管理', nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=restrictions' },
{ path: '/users/report', title: '禁封/举报', nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=reports' },
]