rename CronCoverSelf to CronCoverAlertTrigger

This commit is contained in:
naiba
2022-09-14 22:14:47 +08:00
parent 13abf2af13
commit a5ddafbd8b
3 changed files with 5 additions and 4 deletions

View File

@@ -465,7 +465,7 @@ func (ma *memberAPI) addOrEditCron(c *gin.Context) {
}
// 计划任务类型不得使用触发服务器执行方式
if cr.TaskType == model.CronTypeCronTask && cr.Cover == model.CronCoverSelf {
if cr.TaskType == model.CronTypeCronTask && cr.Cover == model.CronCoverAlertTrigger {
err = errors.New("计划任务类型不得使用触发服务器执行方式")
c.JSON(http.StatusOK, model.Response{
Code: http.StatusBadRequest,