chore: 所有扩展接口就绪

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

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字段可能格式不正确`;
}