fix: 始终展示已认证标识

This commit is contained in:
2026-07-31 11:15:29 +08:00
parent 370ddc70d3
commit 06a03fd9cf
2 changed files with 13 additions and 13 deletions
+2 -1
View File
@@ -172,7 +172,8 @@ main.container,
* exceptions (UC level hero, admin column) override `height` per context.
*/
.aksrt-user-level-icon,
.aksrt-identity-medal {
.aksrt-identity-medal,
.aksrt-identity-certification-icon {
display: inline-block;
width: auto;
height: 1.1em;
+3 -4
View File
@@ -140,10 +140,10 @@ class Home {
if (!empty($settings['verify']['enabled']) && !empty($settings['verify']['public_display']) && $this->is_user_verified($user_id, $settings['verify'])) {
$info = class_exists('AKSRT\\User\\AuthApply') ? AuthApply::get_auth_info($user_id) : [];
$type = sanitize_key((string) ($info['type'] ?? ''));
$application = class_exists('AKSRT\\User\\AuthApply') ? AuthApply::get_apply_payload($user_id) : [];
$type = sanitize_key((string) ($info['type'] ?? $application['type'] ?? ''));
$type_settings = is_array($settings['verify']['types'][$type] ?? null) ? $settings['verify']['types'][$type] : [];
if ($type_settings !== []) {
$label = (string) $type_settings['badge_text'];
$label = (string) ($type_settings['badge_text'] ?? $type_settings['label'] ?? __('认证用户', 'aksrt'));
$signals[] = [
'type' => 'verify',
'label' => $label,
@@ -153,7 +153,6 @@ class Home {
'tone' => 'success',
];
}
}
if (!empty($settings['level']['enabled']) && !empty($settings['level']['public_display'])) {
$level = $this->get_user_level($user_id, $settings['level']);