Sfoglia il codice sorgente

Merge branch 'master' of http://8.136.199.33:3000/hongze/hongze_cygx into cygx4.2.0

xingzai 3 anni fa
parent
commit
fb25888865
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      services/article.go

+ 1 - 3
services/article.go

@@ -12,7 +12,6 @@ import (
 	nhttp "net/http"
 	"strconv"
 	"strings"
-	"time"
 )
 
 func GetReportContentSub(content string) (contentSub string, err error) {
@@ -428,9 +427,8 @@ func GetArticleListByApi(cont context.Context) (err error) {
 		}
 		v.Department = "弘则权益研究"
 		fmt.Println(k, v.ArticleId)
-		hh, _ := time.ParseDuration("8h")
 		//pDate := publishDate.Add(hh)
-		v.PublishDate = v.PublishDate.Add(hh)
+		v.PublishDate = v.PublishDate
 		//判断是否已经存在
 		if v.ArticleId < 0 {
 			fmt.Println("AddCygxArticle Err:")