test #2

Merged
YogeLiu merged 7 commits from test into master 2025-12-19 16:40:46 +08:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit be00a91637 - Show all commits

View File

@@ -24,7 +24,7 @@ func SetupRouter(engine *gin.RouterGroup) {
{
endpoint := task.NewTaskEndpoint()
taskRouter.POST("/evaluate", endpoint.EvaluateTask)
taskRouter.GET("/list", endpoint.GetTaskList)
taskRouter.GET("/list", common.MustAuthMiddleware(), endpoint.GetTaskList)
}
ossRouter := v1.Group("/oss", common.GetAuthMiddleware())

View File

@@ -308,7 +308,8 @@ func (s *RecognitionService) processFormulaTask(ctx context.Context, taskID int6
log.Error(ctx, "func", "processFormulaTask", "msg", "解析响应JSON失败", "error", err)
return err
}
katex := utils.ToKatex(formulaResp.Result)
// katex := utils.ToKatex(formulaResp.Result)
katex := formulaResp.Result
content := &dao.FormulaRecognitionContent{Latex: katex}
b, _ := json.Marshal(content)
// Save recognition result