|
|
@@ -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
|