From aa7bbb473738ca5b4b41a7b700f17b45df3e3e8c Mon Sep 17 00:00:00 2001 From: weicw <594098497@qq.com> Date: Wed, 29 Nov 2023 18:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=A4=E8=AF=81=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../router/service/client/fadada.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/uniCloud-aliyun/cloudfunctions/router/service/client/fadada.js b/uniCloud-aliyun/cloudfunctions/router/service/client/fadada.js index 1071309..b8429b9 100644 --- a/uniCloud-aliyun/cloudfunctions/router/service/client/fadada.js +++ b/uniCloud-aliyun/cloudfunctions/router/service/client/fadada.js @@ -86,14 +86,27 @@ var cloudObject = { }); let res - if (user.accountType == 1) { + if (user.accountType === 1) { res = await pubFun.fadada('find_personCertInfo.api', { verified_serialno: user.fadadaVerify.transactionNo }) + + // 认证结果 + const {person} = res.data + if(person.status !== 2) { + return + } } else { res = await pubFun.fadada('find_companyCertInfo.api', { verified_serialno: user.fadadaVerify.transactionNo }) + + // 认证结果 + const {company, manager} = res.data + if(company.status !== 4 || manager.status !== 2) { + return + } + }