From 51cc9087caad83079e09fc19ecf99034382ec07a Mon Sep 17 00:00:00 2001 From: wxy <14293288+zysysys@user.noreply.gitee.com> Date: Sat, 31 Aug 2024 01:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在实名认证检查中,条件判断从使用`isAuthenticated`改为使用`desc`。这与更新的认证响应格式保持一致。 --- src/views/money/user/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/money/user/index.vue b/src/views/money/user/index.vue index 00dd18e..874a1a7 100644 --- a/src/views/money/user/index.vue +++ b/src/views/money/user/index.vue @@ -112,7 +112,7 @@ export default { async navigateToRecharge() { try { const response = await checkRealNameAuth(this.authForm); - if (response.data && response.data.isAuthenticated) { + if (response.data && response.data.desc) { // 如果已实名认证,直接跳转页面 this.$router.push('/money/zfb'); } else { @@ -130,7 +130,7 @@ export default { try { const {name, idCard} = this.authForm; const authResponse = await checkRealNameAuth(this.authForm); - if (authResponse.code == 200) { + if (authResponse.data && authResponse.data.desc) { this.$message.success('实名认证成功'); this.dialogVisible = false; this.$router.push('/money/zfb');