Pārlūkot izejas kodu

订单明细增加规格明细

abiao 5 gadi atpakaļ
vecāks
revīzija
cbdc8d4551

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

@@ -68,7 +68,7 @@ func (self *OrderController) Create() {
 	if product.ColorId > 0 {
 		productColor := product_model.GetProductAttrValueById(product.ColorId)
 		if productColor != nil {
-			sizeName = productColor.Name
+			colorName = productColor.Name
 		}
 	}
 	totalPrice := product.Price * count
@@ -166,7 +166,7 @@ func (self *OrderController) MultipleCreate() {
 		if product.ColorId > 0 {
 			productColor := product_model.GetProductAttrValueById(product.ColorId)
 			if productColor != nil {
-				sizeName = productColor.Name
+				colorName = productColor.Name
 			}
 		}
 		totalPrice += product.Price * cNums