From 333a7be64bdcc19b0e874d0b8eadef3a65d16950 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 1 Aug 2026 21:34:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A4=E8=AF=81=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=90=8E=E5=85=81=E8=AE=B8=E9=87=8D=E6=96=B0=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- inc/helpers/user-center-renderers/profile-auth.php | 9 +++++---- src/AKSRT/Admin/Native/UsersMenusVerify.php | 8 ++++---- src/AKSRT/Identity/ApplicationRepository.php | 3 +-- src/AKSRT/Identity/TransitionService.php | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/inc/helpers/user-center-renderers/profile-auth.php b/inc/helpers/user-center-renderers/profile-auth.php index 125553e0..3b01d65c 100644 --- a/inc/helpers/user-center-renderers/profile-auth.php +++ b/inc/helpers/user-center-renderers/profile-auth.php @@ -17,13 +17,14 @@ $info = class_exists(AuthApply::class) ? AuthApply::get_auth_info($user_id) : [] $apply = class_exists(AuthApply::class) ? AuthApply::get_apply_payload($user_id) : []; $record = is_array($apply['_application'] ?? null) ? $apply['_application'] : []; $stage = sanitize_key((string) ($record['status'] ?? '')); +$locks_application = in_array($stage, ['created', 'provider_pending', 'provider_processing', 'manual_pending'], true); $reason = (string) ($record['review_note'] ?? $record['provider_result_summary'] ?? ''); $can_apply = !empty($settings['enabled']) && !empty($settings['allow_apply']) && $status !== 'verified'; $config = [ 'restBase' => untrailingslashit(rest_url('aksrt/v1/identity/applications')), 'nonce' => wp_create_nonce('wp_rest'), - 'currentUuid' => (string) ($record['application_uuid'] ?? ''), - 'currentStage' => $stage, + 'currentUuid' => $locks_application ? (string) ($record['application_uuid'] ?? '') : '', + 'currentStage' => $locks_application ? $stage : '', 'allowManual' => !empty($settings['allow_manual_fallback']), ]; ?> @@ -64,7 +65,7 @@ $config = [
-
> +
>

@@ -75,7 +76,7 @@ $config = [
-
> + >