Bläddra i källkod

商品规格更改返回

abiao 5 år sedan
förälder
incheckning
1e3381bea9

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

@@ -312,7 +312,7 @@ func (self *ProductController) GetProductSizesByPid() {
 				if item.SizeType == product_model.SIZE_TYPE_1 {
 					attrList := product_model.GetProductAttrsByKId(productKeyConfig.Id)
 					for _, attr := range attrList {
-						prod := product_model.GetProductByIdAndSizeId(product.RelateProductId, attr.Id, true)
+						prod := product_model.GetProductByIdAndSizeId(product.RelateProductId, attr.Id, false)
 						if prod != nil {
 							size := &product_model.ProductAttr{}
 							size.Id = attr.Id
@@ -326,7 +326,7 @@ func (self *ProductController) GetProductSizesByPid() {
 				if item.SizeType == product_model.SIZE_TYPE_2 {
 					attrList := product_model.GetProductAttrsByKId(productKeyConfig.Id)
 					for _, attr := range attrList {
-						prod := product_model.GetProductByIdAndColorId(product.RelateProductId, attr.Id, true)
+						prod := product_model.GetProductByIdAndColorId(product.RelateProductId, attr.Id, false)
 						if prod != nil {
 							size := &product_model.ProductAttr{}
 							size.Id = attr.Id