|
@@ -84,10 +84,8 @@ func init() {
|
|
// Course 剑鱼课堂首页课程 & 帮助中心热门视频 classify:0:中标比听课视频 1:帮助中心视频(获取所有)
|
|
// Course 剑鱼课堂首页课程 & 帮助中心热门视频 classify:0:中标比听课视频 1:帮助中心视频(获取所有)
|
|
func Course(num, iType int) *[]map[string]interface{} {
|
|
func Course(num, iType int) *[]map[string]interface{} {
|
|
if data := redis.Get("other", fmt.Sprintf("course_%d_%d", num, iType)); data != nil {
|
|
if data := redis.Get("other", fmt.Sprintf("course_%d_%d", num, iType)); data != nil {
|
|
- dataMap, _ := data.([]interface{})
|
|
|
|
- log.Println("other,course", len(dataMap))
|
|
|
|
- _d := util.ObjArrToMapArr(dataMap)
|
|
|
|
- return &_d
|
|
|
|
|
|
+ dataMap := IterToMap(data)
|
|
|
|
+ return &dataMap
|
|
}
|
|
}
|
|
//热门课程
|
|
//热门课程
|
|
/*var HotCourse *[]map[string]interface{}
|
|
/*var HotCourse *[]map[string]interface{}
|