feat(user): complete growth level chain

This commit is contained in:
kate522 committed 2026-07-30 09:38:45 +08:00
1 parent b2e6045117
commit 20c19dfe31
39 files changed
+739 -633

No files matched your search

+2 -1
View File
@@ -141,6 +141,7 @@ if (!function_exists('aksrt_capture_user_center_view')) {
function aksrt_capture_user_center_view(string $view, array $context): string {
// Built-in panels map to renderer files; "profile" content lives in profile-form.php.
$map = [
'level' => 'level',
'profile' => 'form',
'posts' => 'posts',
'comments' => 'comments',
@@ -173,7 +174,7 @@ if (!function_exists('aksrt_capture_user_center_panel')) {
* Capture a built-in or registered user-center panel body.
*/
function aksrt_capture_user_center_panel(string $tab_key, array $tab, array $context): string {
$built_in_tabs = ['profile', 'posts', 'comments', 'favorites', 'credits', 'vip', 'orders', 'auth', 'settings'];
$built_in_tabs = ['profile', 'level', 'posts', 'comments', 'favorites', 'credits', 'vip', 'orders', 'auth', 'settings'];
if (in_array($tab_key, $built_in_tabs, true)) {
return aksrt_capture_user_center_view($tab_key, $context);
}