进行了一些小优化

This commit is contained in:
kate522 committed 2026-08-25 17:02:33 +08:00
1 parent 4a4009133c
commit 11f1c23fa7
12 files changed
+463 -10

No files matched your search

+2 -1
View File
@@ -178,6 +178,7 @@ if (!function_exists('aksrt_capture_user_center_view')) {
'orders' => 'orders',
'auth' => 'auth',
'revenue' => 'revenue',
'msg' => 'msg',
'settings' => 'settings',
'header' => 'header',
'sidebar' => 'sidebar',
@@ -201,7 +202,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', 'level', 'creator', 'posts', 'follow', 'comments', 'favorites', 'credits', 'vip', 'orders', 'auth', 'revenue', 'settings'];
$built_in_tabs = ['profile', 'level', 'creator', 'posts', 'follow', 'comments', 'favorites', 'credits', 'vip', 'orders', 'auth', 'revenue', 'msg', 'settings'];
if (in_array($tab_key, $built_in_tabs, true)) {
return aksrt_capture_user_center_view($tab_key, $context);
}