Browse Source

add clear product cache

abiao 4 years ago
parent
commit
a650b9d480
1 changed files with 1 additions and 1 deletions
  1. 1 1
      go/gopath/src/fohow.com/apps/models/product_model/product_item.go

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