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