fix: 恢复认证图标悬浮文案
This commit is contained in:
1 parent
387b9e1929
commit
3004310194
1 file changed
+9
-1
@@ -143,7 +143,15 @@ class Home {
|
|||||||
$application = class_exists('AKSRT\\User\\AuthApply') ? AuthApply::get_apply_payload($user_id) : [];
|
$application = class_exists('AKSRT\\User\\AuthApply') ? AuthApply::get_apply_payload($user_id) : [];
|
||||||
$type = sanitize_key((string) ($info['type'] ?? $application['type'] ?? ''));
|
$type = sanitize_key((string) ($info['type'] ?? $application['type'] ?? ''));
|
||||||
$type_settings = is_array($settings['verify']['types'][$type] ?? null) ? $settings['verify']['types'][$type] : [];
|
$type_settings = is_array($settings['verify']['types'][$type] ?? null) ? $settings['verify']['types'][$type] : [];
|
||||||
$label = (string) ($type_settings['badge_text'] ?? $type_settings['label'] ?? '');
|
$label = trim((string) ($type_settings['badge_text'] ?? $type_settings['label'] ?? ''));
|
||||||
|
if ($label === '') {
|
||||||
|
foreach ((array) ($settings['verify']['types'] ?? []) as $configured_type) {
|
||||||
|
if (is_array($configured_type) && !empty($configured_type['badge_text'])) {
|
||||||
|
$label = trim((string) $configured_type['badge_text']);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
$signals[] = [
|
$signals[] = [
|
||||||
'type' => 'verify',
|
'type' => 'verify',
|
||||||
'label' => $label,
|
'label' => $label,
|
||||||
|
|||||||
Reference in new issue
Block a user