Bladeren bron

商品model更改

abiao 5 jaren geleden
bovenliggende
commit
c38e14d527

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

@@ -263,7 +263,7 @@ func (self *ProductController) GetProductSizesByPid() {
 			if item.SizeType == product_model.SIZE_TYPE_2 {
 				attrList := product_model.GetProductAttrsByKId(productKeyConfig.Id)
 				for _, attr := range attrList {
-					if attr.Id == product.SizeId {
+					if attr.Id == product.ColorId {
 						attr.IsSelect = true
 					}
 				}