From 5b84285b7b1feec082deaeb12d8a2240a0c4b64b Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 21 九月 2023 16:23:34 +0800
Subject: [PATCH] 获取任务,未完成的开始时间小于等于当前时间,结束时间大于当前时间的任务

---
 api/v1/task.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/api/v1/task.go b/api/v1/task.go
index bbb328d..1e961b8 100644
--- a/api/v1/task.go
+++ b/api/v1/task.go
@@ -106,7 +106,7 @@
 
 	processModel, err := service.NewTaskService().GetProcessParams(procedure, order)
 	if err != nil || processModel == nil || processModel.ParamsMap == nil {
-		ctx.Fail(ecode.UnknownErr)
+		ctx.FailWithMsg(ecode.ParamsErr, "璇峰厛閰嶇疆宸ヨ壓鍙傛暟")
 		return
 	}
 

--
Gitblit v1.8.0