Pārlūkot izejas kodu

研选纪要详情隐藏作者手机号

xingzai 2 gadi atpakaļ
vecāks
revīzija
297182ca5f
1 mainītis faili ar 14 papildinājumiem un 15 dzēšanām
  1. 14 15
      controllers/article.go

+ 14 - 15
controllers/article.go

@@ -20,8 +20,7 @@ import (
 	"html"
 
 	nhttp "net/http"
-	//"os"
-	"regexp"
+
 	"strconv"
 	"strings"
 	"time"
@@ -566,19 +565,19 @@ func (this *ArticleCommonController) Detail() {
 		br.ErrMsg = "获取销售数据失败,Err:" + err.Error() + ";articleId" + strconv.Itoa(detail.ArticleId)
 		return
 	}
-	if detail.ArticleId > 1000000 {
-		var hrefRegexp = regexp.MustCompile("[0-9]\\d*")
-		match := hrefRegexp.FindAllString(detail.SellerAndMobile, -1)
-		if match != nil {
-			for _, v := range match {
-				sellerAndMobile := &models.SellerRep{
-					SellerMobile: v,
-					SellerName:   strings.Replace(detail.SellerAndMobile, v, "", -1),
-				}
-				sellerList = append(sellerList, sellerAndMobile)
-			}
-		}
-	}
+	//if detail.ArticleId > 1000000 {
+	//	var hrefRegexp = regexp.MustCompile("[0-9]\\d*")
+	//	match := hrefRegexp.FindAllString(detail.SellerAndMobile, -1)
+	//	if match != nil {
+	//		for _, v := range match {
+	//			sellerAndMobile := &models.SellerRep{
+	//				SellerMobile: v,
+	//				SellerName:   strings.Replace(detail.SellerAndMobile, v, "", -1),
+	//			}
+	//			sellerList = append(sellerList, sellerAndMobile)
+	//		}
+	//	}
+	//}
 	resp.HasPermission = 1
 	detail.Abstract, _ = services.GetReportContentTextSub(detail.Abstract)
 	detail.SellerList = sellerList