feat(pages): 1:1 用户身份认证页 user-auth

Public apply/status shell on aksrt_user_verify_* meta, AJAX submit with
materials upload, admin approve promotes apply payload to auth info.
This commit is contained in:
2026-07-18 21:15:15 +08:00
parent 1cb534e4fe
commit cd04a03329
8 changed files with 602 additions and 0 deletions
+12
View File
@@ -550,6 +550,18 @@ class UsersMenus {
} elseif ($status === 'verified') {
delete_user_meta($user_id, 'aksrt_user_verify_reason');
}
// Promote apply payload to public auth info when approved.
if ($status === 'verified') {
$apply = get_user_meta($user_id, 'aksrt_user_verify_apply', true);
if (is_array($apply)) {
update_user_meta($user_id, 'aksrt_user_verify_info', [
'name' => (string) ($apply['name'] ?? ''),
'desc' => (string) ($apply['desc'] ?? ''),
'type' => (string) ($apply['type'] ?? ''),
'time' => current_time('Y-m-d H:i'),
]);
}
}
$log = get_option('aksrt_verify_review_log', []);
$log = is_array($log) ? $log : [];
$log[] = [