xingzai 3 vuotta sitten
vanhempi
commit
93978396f4
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      controllers/article.go

+ 1 - 0
controllers/article.go

@@ -208,6 +208,7 @@ func (this *ArticleController) Detail() {
 			//	}
 			//	}
 			//}
 			//}
 			strnum := strings.Index(detail.SellerAndMobile, "-")
 			strnum := strings.Index(detail.SellerAndMobile, "-")
+			detail.SellerAndMobile = detail.SellerAndMobile[0:strnum]
 			if strnum > 0 {
 			if strnum > 0 {
 				nickName := detail.SellerAndMobile[0:strnum]
 				nickName := detail.SellerAndMobile[0:strnum]
 				sellerAndMobile := &models.SellerRep{
 				sellerAndMobile := &models.SellerRep{