Merge branch 'feat-cjy-report' into dev
This commit is contained in:
commit
889acc4e78
Binary file not shown.
@ -301,8 +301,16 @@ func ImportCompetitiveReportBatch(ctx *gin.Context) {
|
||||
|
||||
// 解析标题(C列,row[2])
|
||||
if len(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])
|
||||
if len(row) > 3 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user