|
@@ -76,6 +76,7 @@ func (a *aheadActiveFreeUser) GetMonthActiveFreeUsers() (rData []string) {
|
|
|
log.Printf("[ACTIVE-USER-INFO]AheadActiveFreeUser GetMonthActiveFreeUsers search end\n")
|
|
|
|
|
|
if res == nil || len(*res) == 0 {
|
|
|
+ log.Printf("[ACTIVE-USER-INFO]AheadActiveFreeUser GetMonthActiveFreeUsers search err\n")
|
|
|
return
|
|
|
}
|
|
|
rData = make([]string, 0, len(*res))
|
|
@@ -86,7 +87,7 @@ func (a *aheadActiveFreeUser) GetMonthActiveFreeUsers() (rData []string) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- log.Printf("[ACTIVE-USER-INFO]AheadActiveFreeUser GetMonthActiveFreeUsers start Finished Total %d\n", len(rData))
|
|
|
+ log.Printf("[ACTIVE-USER-INFO]AheadActiveFreeUser GetMonthActiveFreeUsers end Finished Total %d\n", len(rData))
|
|
|
return rData
|
|
|
}
|
|
|
|
|
@@ -97,6 +98,7 @@ func (c *customerActiveFreeUser) GetMonthActiveFreeUsers() (rData []string) {
|
|
|
//表数据为近一个月,所以直接查询全部
|
|
|
res := public.UserAnalyseDb.SelectBySql("SELECT user_mongoid,sum(search) AS total FROM user_countbyhour group by user_mongoid")
|
|
|
if res == nil || len(*res) == 0 {
|
|
|
+ log.Printf("[ACTIVE-USER-INFO]CustomerActiveFreeUser GetMonthActiveFreeUsers err\n")
|
|
|
return
|
|
|
}
|
|
|
rData = make([]string, 0, len(*res))
|
|
@@ -120,7 +122,7 @@ func (c *customerActiveFreeUser) GetMonthActiveFreeUsers() (rData []string) {
|
|
|
}
|
|
|
rData = append(rData, userId)
|
|
|
}
|
|
|
- log.Printf("[ACTIVE-USER-INFO]CustomerActiveFreeUser GetMonthActiveFreeUsers start Finished Total %d\n", len(rData))
|
|
|
+ log.Printf("[ACTIVE-USER-INFO]CustomerActiveFreeUser GetMonthActiveFreeUsers end Finished Total %d\n", len(rData))
|
|
|
return rData
|
|
|
}
|
|
|
|