添加认证结果判断
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user