abiao лет назад: 5
Родитель
Сommit
1c7c1bfa15
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      go/gopath/src/fohow.com/apps/helpers/promotion_helper.go

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

@@ -26,11 +26,13 @@ func SetOrderPromotion(orderId string, wxUid int64) {
 	queryDate := time.Now()
 	// 获取所有有效促销记录
 	effectivePromotions := order_model.GetEffetivePromotions(queryDate, order.OrderType, false)
+	beego.Warn("item_nums%d", len(effectivePromotions))
 	for _, item := range effectivePromotions {
 		firstFlag := true
 		totalFlag := true
 		numsFlag := true
 		if item.MaxTotal > 0 && order.TotalPrice > item.MaxTotal {
+			beego.Warn("MaxTotal%d", item.MaxTotal)
 			totalFlag = false
 			continue
 		}
@@ -39,6 +41,7 @@ func SetOrderPromotion(orderId string, wxUid int64) {
 			continue
 		}
 		if item.MinTotal > 0 && order.TotalPrice < item.MinTotal {
+			beego.Warn("MinTotal%d", item.MinTotal)
 			totalFlag = false
 			firstFlag = false
 			continue