浏览代码

商品model更改

abiao 5 年之前
父节点
当前提交
c38e14d527
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      go/gopath/src/fohow.com/apps/controllers/product_controller/product_controller.go

+ 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
 					}
 				}