|
@@ -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
|