diff --git a/apis/process/task.go b/apis/process/task.go index 3dd3b03..bdc560e 100644 --- a/apis/process/task.go +++ b/apis/process/task.go @@ -198,7 +198,7 @@ func UpdateTask(c *gin.Context) { // 删除任务 func DeleteTask(c *gin.Context) { fullName := c.DefaultQuery("full_name", "") - if fullName == "" { + if fullName == "" || Strings.Contains(fullName, "/") { app.Error(c, -1, errors.New("参数不正确,请确定参数full_name是否传递"), "") return }