Procházet zdrojové kódy

order add promotion

abiao před 5 roky
rodič
revize
0432b5b152

+ 2 - 2
go/gopath/src/fohow.com/apps/controllers/order_controller/order_controller.go

@@ -262,7 +262,7 @@ func (self *OrderController) Detail() {
 		beego.BeeLogger.Error("order not exist id=[%s]", oId)
 		self.ReturnError(404, apps.OrderNotExist, "", nil)
 	}
-	orderList := order_model.GetAllDetailsOrderId(o.OrderId, true)
+	orderList := order_model.GetAllDetailsOrderId(o.OrderId, false)
 	for _, item := range orderList {
 		product := product_model.GetProductById(item.ProductId, cache)
 		if product == nil {
@@ -333,7 +333,7 @@ func (self *OrderController) List() {
 	count := order_model.GetUserOrdersCount(wxUId, status)
 
 	for _, item := range orders {
-		orderList := order_model.GetAllDetailsOrderId(item.OrderId, true)
+		orderList := order_model.GetAllDetailsOrderId(item.OrderId, false)
 		for _, orderItem := range orderList {
 			product := product_model.GetProductById(orderItem.ProductId, cache)
 			if product == nil {