fix:调整错误提示语,格式化代码
This commit is contained in:
parent
d9f8e69a11
commit
bbc18f56af
@ -114,7 +114,7 @@ func CreateCompetitiveReportCore(ctx *gin.Context, req *cast.CreateCompetitiveRe
|
|||||||
// 验证:必须传入 json_data(使用模板方式生成PDF)
|
// 验证:必须传入 json_data(使用模板方式生成PDF)
|
||||||
hasReportData := reportData.OverallSummary != "" || reportData.HighlightAnalysis.Summary != ""
|
hasReportData := reportData.OverallSummary != "" || reportData.HighlightAnalysis.Summary != ""
|
||||||
if !hasReportData {
|
if !hasReportData {
|
||||||
return nil, errors.New("请传入json_data参数")
|
return nil, errors.New("参数错误")
|
||||||
}
|
}
|
||||||
|
|
||||||
if req.ImageUrl != "" {
|
if req.ImageUrl != "" {
|
||||||
@ -128,6 +128,7 @@ func CreateCompetitiveReportCore(ctx *gin.Context, req *cast.CreateCompetitiveRe
|
|||||||
|
|
||||||
// 使用模板方式生成PDF
|
// 使用模板方式生成PDF
|
||||||
zap.L().Info("reportData内容", zap.Any("reportData", reportData))
|
zap.L().Info("reportData内容", zap.Any("reportData", reportData))
|
||||||
|
fmt.Println(reportData)
|
||||||
|
|
||||||
// 直接使用传入的结构体数据
|
// 直接使用传入的结构体数据
|
||||||
competitorReportData := reportData
|
competitorReportData := reportData
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user