|
@@ -196,16 +196,25 @@ func (this *ArticleController) Detail() {
|
|
|
return
|
|
|
}
|
|
|
if detail.ArticleId >= utils.SummaryArticleId {
|
|
|
- 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)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ strnum := strings.Index(detail.SellerAndMobile, "-")
|
|
|
+ if strnum > 0 {
|
|
|
+ nickName := detail.SellerAndMobile[0:strnum]
|
|
|
+ sellerAndMobile := &models.SellerRep{
|
|
|
+ SellerMobile: "",
|
|
|
+ SellerName: nickName,
|
|
|
}
|
|
|
+ sellerList = append(sellerList, sellerAndMobile)
|
|
|
}
|
|
|
}
|
|
|
detail.SellerList = sellerList
|