From 03d24a395c0a5b0aa06445b70da4a9bf26997bb0 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 26 九月 2025 09:51:56 +0800
Subject: [PATCH] fix: s

---
 apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue b/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
index a7a1cef..6e5dda9 100644
--- a/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
@@ -109,7 +109,7 @@
   name: 'InnerPage',
 });
 
-const { userDetail } = useUser();
+const { userDetail, updateUserInfo } = useUser();
 const router = Taro.useRouter();
 const type = router.params?.type ?? '';
 
@@ -157,9 +157,8 @@
 
 function handleFrontImgUrlChange(response: FileItem) {
   userCredentialVerifyOcrIDCard({
-    response: response,
+    url: response?.url,
     access: EnumOcrAccess.Baidu,
-    isOssUrl: true,
     onSuccess(res) {
       if (res.model?.name) form.name = res.model?.name;
       if (res.model?.identity) form.identity = res.model?.identity;
@@ -212,7 +211,9 @@
     };
     let res = await electronSignServices.personalUserFaceReal(params);
     if (res) {
-      const encodedUrl = encodeURIComponent(res);
+      // 涓轰簡鍏煎鏃х増鏈殑api res鐩存帴鏄痜aceUrl
+      const encodedUrl = encodeURIComponent(typeof res === 'string' ? res : res.faceUrl);
+      updateUserInfo();
       Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` });
     }
   } catch (error) {}

--
Gitblit v1.9.1