|
@@ -84,11 +84,6 @@ func (l *DeskAnalysisReport) DeskReport() {
|
|
|
userId := gconv.String(l.GetSession("userId"))
|
|
|
mgoUserId := gconv.String(l.GetSession("mgoUserId"))
|
|
|
rData := func() interface{} {
|
|
|
- res := redis.Get("limitation", "user_desk_report")
|
|
|
- if res != nil {
|
|
|
- resData, _ := res.([]interface{})
|
|
|
- return qutil.ObjArrToMapArr(resData)
|
|
|
- }
|
|
|
data, ok := mongodb.FindOne("saleLeads", map[string]interface{}{
|
|
|
"userid": userId,
|
|
|
"source": "app_xzcyh",
|
|
@@ -182,7 +177,6 @@ func (l *DeskAnalysisReport) DeskReport() {
|
|
|
dataArrMap = append(dataArrMap, map[string]interface{}{"title": title,
|
|
|
"url": fmt.Sprintf("/hybg/%s.html", gconv.String(row["id"]))})
|
|
|
}
|
|
|
- redis.Put("limitation", "user_desk_report", dataArrMap, 24*3600)
|
|
|
return dataArrMap
|
|
|
}
|
|
|
|