xingzai 3 жил өмнө
parent
commit
93978396f4

+ 1 - 0
controllers/article.go

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