exports.main = async (e) => {
try {
const result = await cloud.openapi.riskControl.getUserRiskRank({
appid: e.appid,
openid: e.openid,
scene: e.scene,
clientIp: e.clientIp
})
return result
} catch (err) {
return err
}
}
errCode: 48001 errMsg: "openapi.riskControl.getUserRiskRank:fail api unauthorized rid: 5fd6fc8f-71d3d129-4da805a1"
config.json 已配置权限如下,
{
"permissions": {
"openapi": [
"riskControl.getUserRiskRank"
]
}
}