소스 검색

no message

Jianghan 5 년 전
부모
커밋
1557547047
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/util/parsxlsx.go

+ 6 - 0
src/util/parsxlsx.go

@@ -185,6 +185,8 @@ func ResponseXlsx(id string) string {
 					row.AddCell().SetValue(v["subtype"])
 					if v["publishtime"] != nil {
 						row.AddCell().SetValue(time.Unix(util.Int64All(v["publishtime"]), 0).Format("2006-01-02"))
+					}else {
+						row.AddCell()
 					}
 					row.AddCell().SetValue(v["buyer"])
 					row.AddCell().SetValue(v["winner"])
@@ -216,6 +218,8 @@ func ResponseXlsx(id string) string {
 					row.AddCell().SetValue(v["detail"])
 					if v["publishtime"] != nil {
 						row.AddCell().SetValue(time.Unix(util.Int64All(v["publishtime"]), 0).Format("2006-01-02"))
+					}else {
+						row.AddCell()
 					}
 					row.AddCell().SetValue(v["href"])
 					row.AddCell().SetValue(v["s_jyhref"])
@@ -225,6 +229,8 @@ func ResponseXlsx(id string) string {
 					row.AddCell().SetFloat(util.Float64All(v["bidamount"]) / 10000)
 					if v["bidopentime"] != nil {
 						row.AddCell().SetValue(time.Unix(util.Int64All(v["bidopentime"]), 0).Format("2006-01-02"))
+					}else {
+						row.AddCell()
 					}
 					row.AddCell().SetValue(v["buyer"])
 					row.AddCell().SetValue(v["buyerperson"])