fix: 校验端默认延迟不超过调度上限

This commit is contained in:
Nixevol
2026-09-30 16:22:48 +08:00
parent 43f847483b
commit b3787a0471
4 changed files with 93 additions and 7 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ func (h *Handler) validateImportCSV(ctx context.Context, raw []byte) ([]importPr
}
delaySec = n
}
if msg := validateEndpointFields(id, name, remark, loginPW, talkPW, delaySec); msg != "" {
if msg := validateEndpointFields(id, name, remark, loginPW, talkPW, delaySec, h.maxScheduleSeconds()); msg != "" {
errs = append(errs, csvLineError{Line: line, Reason: msg})
continue
}