Selaa lähdekoodia

promotion add products

abiao 4 vuotta sitten
vanhempi
commit
99fbbe4f00
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      go/gopath/src/fohow.com/apps/helpers/promotion_helper.go

+ 1 - 1
go/gopath/src/fohow.com/apps/helpers/promotion_helper.go

@@ -97,7 +97,7 @@ func SetOrderPromotion(orderId string, wxUid int64) {
 			nums6 = int64(0)
 			detail5 := order_model.GetDetailsByOrderIdAndPid(orderId, item.Prod5)
 			if detail5 != nil && item.Prod5 > 0 && item.Nums5 > 0 {
-				nums6 = int64(detail5.Count / item.Nums4)
+				nums6 = int64(detail5.Count / item.Nums5)
 			}
 		}