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