|
|
@@ -463,11 +463,14 @@ func (self *OrderController) Detail() {
|
|
|
self.ReturnError(403, apps.ProductNotExist, "", nil)
|
|
|
}
|
|
|
//获取商品属性详情
|
|
|
+ product.Commend = true
|
|
|
product.SizeName = item.SizeName
|
|
|
product.ColorName = item.ColorName
|
|
|
product.OrderCount = item.Count
|
|
|
product.IsZeng = item.Send
|
|
|
- product.Commend = item.Commend
|
|
|
+ if !item.Commend && o.Status == order_model.STATUS_COMPLETE {
|
|
|
+ product.Commend = item.Commend
|
|
|
+ }
|
|
|
o.Count += item.Count
|
|
|
if product.SeckilShowPrice > 0 {
|
|
|
now := time.Now()
|
|
|
@@ -540,7 +543,10 @@ func (self *OrderController) List() {
|
|
|
item.Count += orderItem.Count
|
|
|
product.OrderCount = orderItem.Count
|
|
|
product.IsZeng = orderItem.Send
|
|
|
- product.Commend = orderItem.Commend
|
|
|
+ product.Commend = true
|
|
|
+ if !orderItem.Commend && item.Status == order_model.STATUS_COMPLETE {
|
|
|
+ product.Commend = orderItem.Commend
|
|
|
+ }
|
|
|
|
|
|
if product.SeckilShowPrice > 0 {
|
|
|
now := time.Now()
|