Selaa lähdekoodia

product package item develop---order base dt add send

abiao 4 vuotta sitten
vanhempi
commit
28c5aac2a4

+ 1 - 1
go/gopath/src/fohow.com/apps/models/product_model/product_item.go

@@ -36,7 +36,7 @@ func GetPackageList(pId int64, useCache bool) (items []*ProductItem) {
 		}
 	}
 	o := orm.NewOrm()
-	_, err := o.QueryTable(new(ProductItem)).Filter("product_id", 1).All(&items)
+	_, err := o.QueryTable(new(ProductItem)).Filter("product_id", pId).All(&items)
 	if err != nil {
 		beego.BeeLogger.Debug("GetPackageList err=%s", err)
 	}