소스 검색

商品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
 					}
 				}