fix: mock/前端 Worker 与备注校验对齐后端(Codex gpt-6-astra)

This commit is contained in:
RuoJi6 committed 2026-10-24 22:31:54 +08:00
1 parent 2e6ceddf95
commit 2bd7953313
6 files changed
+126 -29

No files matched your search

+3
View File
@@ -78,6 +78,9 @@ func validateTaskTemplateRequest(req taskTemplateRequest) error {
value = strings.Join(strings.Fields(value), " ")
}
if utf8.RuneCountInString(value) > check.limit {
if check.name == "remark" {
return fmt.Errorf("备注最多 %d 个字符", check.limit)
}
return fmt.Errorf("%s 最多 %d 个字符", check.name, check.limit)
}
}