|
|
@@ -213,6 +213,19 @@ func (self *OrderController) Detail() {
|
|
|
if product == nil {
|
|
|
self.ReturnError(403, apps.ProductNotExist, "", nil)
|
|
|
}
|
|
|
+ //获取商品属性详情
|
|
|
+ if product.SizeId > 0 {
|
|
|
+ productSize := product_model.GetProductAttrValueById(product.SizeId)
|
|
|
+ if productSize != nil {
|
|
|
+ product.SizeName = productSize.Name
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if product.ColorId > 0 {
|
|
|
+ productColor := product_model.GetProductAttrValueById(product.ColorId)
|
|
|
+ if productColor != nil {
|
|
|
+ product.ColorName = productColor.Name
|
|
|
+ }
|
|
|
+ }
|
|
|
product.OrderCount = item.Count
|
|
|
o.Count += item.Count
|
|
|
if product.SeckilShowPrice > 0 {
|