From 123759ab17219f31e4bfc5757ceeba107f594784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 25 May 2024 13:39:49 +0800 Subject: [PATCH] fix: typo --- src/onebot11/action/extends/OCRImage.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/onebot11/action/extends/OCRImage.ts b/src/onebot11/action/extends/OCRImage.ts index a02cac6c..b837e1d4 100644 --- a/src/onebot11/action/extends/OCRImage.ts +++ b/src/onebot11/action/extends/OCRImage.ts @@ -22,7 +22,7 @@ export class OCRImage extends BaseAction { protected async _handle(payload: Payload) { const { path, isLocal, errMsg } = (await uri2local(payload.image)); if (errMsg) { - throw `头像${payload.file}设置失败,file字段可能格式不正确`; + throw `OCR ${payload.file}失败,file字段可能格式不正确`; } if (path) { await checkFileReceived(path, 5000); // 文件不存在QQ会崩溃,需要提前判断 @@ -33,7 +33,6 @@ export class OCRImage extends BaseAction { if (!ret) { throw `OCR ${payload.file}失败`; } - // log(`头像设置返回:${JSON.stringify(ret)}`) return ret.result; } if (!isLocal) {