style&chore: 整理代码
This commit is contained in:
1 parent
4b6cde786e
commit
d7f97a6fa0
45 files changed
+74
-298
No files matched your search
@@ -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字段可能格式不正确`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user