Browse Source

更新商品图片返回

abiao 5 years ago
parent
commit
a38f87866b

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/product_controller/product_controller.go

@@ -139,7 +139,7 @@ func (self *ProductController) GetPdDetail() {
 			pd.LeftCount = pd.Count - pd.SoldCount
 		}
 		pd.SoldCount = pd.SoldCount + pd.VirtualSoldCount
-		pd.Cover = product_model.GetCoverByPId(pId, cache)
+		pd.Cover = product_model.GetCoverByPId(pd.Id, cache)
 		pd.Album = product_model.GetPicturesByPIdAndPType(pId, product_model.PIC_TYPE_ALBUM, cache)
 		pd.ShareImg = self.GetCdnFullImgUrl(pd.ShareImg)
 		if pd.SeckilShowPrice > 0 {