chore: 所有扩展接口就绪

This commit is contained in:
手瓜一十雪 committed 2024-08-09 17:01:29 +08:00
1 parent 3c855f4185
commit 917a179128
9 files changed
+10 -13

No files matched your search

+2 -1
View File
@@ -18,7 +18,8 @@ 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 NTQQSystemApi = this.CoreContext.getApiContext().SystemApi;
const { path, isLocal, errMsg,success } = (await uri2local(this.CoreContext.NapCatTempPath,payload.image));
if (!success) {
throw `OCR ${payload.image}失败,image字段可能格式不正确`;
}