fix:增加标题长度限制要求
This commit is contained in:
parent
0515d2ab03
commit
02e00f9d49
@ -416,6 +416,13 @@ func ImportCompetitiveReportBatch(ctx *gin.Context) {
|
||||
// 截断超长字段(按AI生成的字段长度要求)
|
||||
competitorReportData = truncateCompetitorReportData(competitorReportData)
|
||||
|
||||
// 验证标题长度(数据库字段为varchar(50))
|
||||
if len(temp.Title) > 50 {
|
||||
temp.Remark = "标题长度超出限制"
|
||||
req.Reports = append(req.Reports, temp)
|
||||
continue
|
||||
}
|
||||
|
||||
// 验证必填字段
|
||||
if artistNum == "" {
|
||||
temp.Remark = "艺人编号不能为空"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user