Procházet zdrojové kódy

add clear product cache

abiao před 4 roky
rodič
revize
a650b9d480

+ 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", pId).All(&items)
+	_, err := o.QueryTable(new(ProductItem)).Filter("product_id", pId).OrderBy("id").All(&items)
 	if err != nil {
 		beego.BeeLogger.Debug("GetPackageList err=%s", err)
 	}