build: 181test

This commit is contained in:
手瓜一十雪 committed 2024-08-06 11:07:37 +08:00
1 parent 1070278eaf
commit 8fa6a12a7c
8 files changed
+29 -26

No files matched your search

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