feat: add mml from backend

This commit is contained in:
liuyuanchuang
2026-02-05 10:44:11 +08:00
parent d1a56a2ab3
commit 81c2767423
5 changed files with 19 additions and 18 deletions

View File

@@ -180,6 +180,7 @@ func (s *RecognitionService) GetFormualTask(ctx context.Context, taskNo string)
Latex: taskRet.Latex,
Markdown: markdown,
MathML: taskRet.MathML,
MML: taskRet.MML,
Status: int(task.Status),
}, nil
}
@@ -544,6 +545,7 @@ func (s *RecognitionService) processFormulaTask(ctx context.Context, taskID int6
Latex: ocrResp.Latex,
Markdown: ocrResp.Markdown,
MathML: ocrResp.MathML,
MML: ocrResp.MML,
})
if err != nil {
log.Error(ctx, "func", "processFormulaTask", "msg", "保存任务结果失败", "error", err)