mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 08:40:20 +00:00
rename CronCoverSelf to CronCoverAlertTrigger
This commit is contained in:
1 parent
c114083a44
commit
df2e8aac06
3 files changed
+5
-4
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user