fix: 修改报告名
This commit is contained in:
parent
c0ea800511
commit
c6f4385991
Binary file not shown.
@ -301,7 +301,15 @@ func ImportCompetitiveReportBatch(ctx *gin.Context) {
|
||||
|
||||
// 解析标题(C列,row[2])
|
||||
if len(row) > 2 {
|
||||
temp.Title = utils.CleanString(row[2])
|
||||
if temp.Title == "" {
|
||||
// 获取中国时区时间
|
||||
loc, _ := time.LoadLocation("Asia/Shanghai")
|
||||
now := time.Now().In(loc)
|
||||
nowDate := now.Format("2006-01-02")
|
||||
temp.Title = nowDate + temp.ArtistName + "老师竞品报告"
|
||||
} else {
|
||||
temp.Title = utils.CleanString(row[2])
|
||||
}
|
||||
}
|
||||
|
||||
// 解析报告内容(D列,row[3])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user