diff --git a/pkg/service/cast/report.go b/pkg/service/cast/report.go index 6b6fa27..c2bee2b 100644 --- a/pkg/service/cast/report.go +++ b/pkg/service/cast/report.go @@ -71,7 +71,7 @@ func CreateCompetitiveReport(ctx *gin.Context) { return } - if req.ReportContent != "" && req.ImageUrl != "" { + if req.ReportContent == "" || req.ImageUrl == "" { err = errors.New("报告内容和图片不能同时为空") service.Error(ctx, err) return