style&chore: 整理代码

This commit is contained in:
手瓜一十雪 committed 2024-08-07 09:53:48 +08:00
1 parent 4b6cde786e
commit d7f97a6fa0
45 files changed
+74 -298

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ export class OCRImage extends BaseAction<Payload, any> {
actionName = ActionName.OCRImage;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
const { path, isLocal, errMsg,success } = (await uri2local(payload.image));
const { path, isLocal, errMsg, success } = (await uri2local(payload.image));
if (!success) {
throw `OCR ${payload.image}失败,image字段可能格式不正确`;
}