From 96425f428c4ea5bc99389dc54036f41ffe595a0e Mon Sep 17 00:00:00 2001 From: DCloud__JSON Date: Tue, 9 May 2023 18:09:17 +0800 Subject: [PATCH] Update index.obj.js --- uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js b/uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js index ca20be3..9c346b2 100644 --- a/uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js +++ b/uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js @@ -84,7 +84,7 @@ module.exports = { errMsg: '文字存在风险', result: checkRes.result }); - throw "isSecCheck" + throw "uni-sec-check:illegalData" } else if (checkRes.errCode) { console.log(`其他原因导致此文件未完成自动审核(错误码:${checkRes.errCode},错误信息:${checkRes.errMsg}),需要人工审核`); console.error({ @@ -92,7 +92,7 @@ module.exports = { errMsg: checkRes.errMsg, result: checkRes.result }); - throw "isSecCheck" + throw "uni-sec-check:illegalData" } } @@ -109,7 +109,7 @@ module.exports = { if(error.errCode && error.errMsg) { // 符合响应体规范的错误,直接返回 return error - }else if(error == "isSecCheck" ) { + }else if(error == "uni-sec-check:illegalData" ) { return { "data": { "reply": "内容涉及敏感", -- GitLab