fix(user-center): connect certification workflow

This commit is contained in:
2026-07-28 14:17:18 +08:00
parent a7f3caec59
commit d3bf75fbea
13 changed files with 97 additions and 23 deletions
+29 -1
View File
@@ -525,7 +525,35 @@ class UsersMenus {
echo '<td>' . esc_html((string) ($row['display_name'] ?? '')) . '</td>';
echo '<td>' . esc_html((string) ($row['user_email'] ?? '')) . '</td>';
echo '<td>' . esc_html($st) . '</td>';
echo '<td>' . esc_html((string) ($row['verify_reason'] ?? '')) . '</td>';
$apply = get_user_meta($uid, 'aksrt_user_verify_apply', true);
$apply = is_array($apply) ? $apply : [];
$type_labels = [];
if (class_exists('\AKSRT\User\AuthApply')) {
foreach ((array) \AKSRT\User\AuthApply::settings()['types'] as $type) {
$type_labels[(string) ($type['slug'] ?? '')] = (string) ($type['label'] ?? '');
}
}
echo '<td>';
if ($apply) {
$type_key = sanitize_key((string) ($apply['type'] ?? ''));
echo '<strong>' . esc_html((string) ($apply['name'] ?? '')) . '</strong>';
if ($type_key !== '') {
echo '<div><span class="dashicons dashicons-id" aria-hidden="true"></span> ' . esc_html($type_labels[$type_key] ?? $type_key) . '</div>';
}
if (!empty($apply['desc'])) {
echo '<div>' . esc_html((string) $apply['desc']) . '</div>';
}
if (!empty($apply['msg'])) {
echo '<div class="description">' . esc_html((string) $apply['msg']) . '</div>';
}
foreach ((array) ($apply['img'] ?? []) as $image_url) {
echo '<a href="' . esc_url((string) $image_url) . '" target="_blank" rel="noopener noreferrer"><img src="' . esc_url((string) $image_url) . '" alt="" style="width:56px;height:56px;object-fit:cover;margin:6px 6px 0 0;border-radius:4px;" /></a>';
}
}
if (!empty($row['verify_reason'])) {
echo '<div class="description">' . esc_html((string) $row['verify_reason']) . '</div>';
}
echo '</td>';
echo '<td>';
if ($st === 'pending') {
foreach (['verified' => __('通过', 'aksrt'), 'rejected' => __('拒绝', 'aksrt')] as $action => $label) {