|
@@ -162,7 +162,6 @@ func Course(num, iType int) *[]map[string]interface{} {
|
|
|
}
|
|
|
productPrice := util.Float64All(value["i_price"])
|
|
|
fool, discountPrice := OptimalSelection(util.InterfaceToStr(value["_id"]), productPrice)
|
|
|
- fmt.Println("OptimalSelection=====", fool, discountPrice, value["_id"])
|
|
|
(*LatestCourses)[key]["isDiscount"] = fool
|
|
|
if fool {
|
|
|
(*LatestCourses)[key]["discountPrice"] = productPrice - discountPrice
|