Explorar o código

promotion for go 7

abiao %!s(int64=2) %!d(string=hai) anos
pai
achega
b5be4bbfa3
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      go/gopath/src/fohow.com/apps/models/order_model/order.go

+ 4 - 1
go/gopath/src/fohow.com/apps/models/order_model/order.go

@@ -939,10 +939,13 @@ func GetNotInvovedAmount(promotionId int64, orderId string) int64 {
 		beego.BeeLogger.Debug("GetNotInvovedAmount err=%s", err)
 		return 0
 	}
-	fmt.Println(results)
 	total := int64(0)
 	for _, item := range results {
 		item_pd := product_model.GetProductById(item.ProductId, true)
+
+		beego.BeeLogger.Error("GetNotInvovedAmount-results.productId-%d", item.ProductId)
+		beego.BeeLogger.Error("GetNotInvovedAmount-results.price-%d", item_pd.Price)
+
 		total += item.Nums * item_pd.Price
 	}
 	beego.BeeLogger.Error("GetNotInvovedAmount-total-%d", total)