Browse Source

提交代码,增加年度数据准备。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.11.2^2
zouap 3 years ago
parent
commit
d264f4735b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user_business_analysis.go

+ 1
- 1
models/user_business_analysis.go View File

@@ -1726,7 +1726,7 @@ func queryCommitAction(start_unix int64, end_unix int64, actionType int64) (map[
} else {
mostActiveMap[actionRecord.UserID][key] = getMapKeyStringValue(key, mostActiveMap[actionRecord.UserID]) + 1
}
utcTime := actionRecord.CreatedUnix.AsTime().UTC()
utcTime := actionRecord.CreatedUnix.AsTime()
hour := utcTime.Hour()
if hour >= 0 && hour <= 5 {
key = "hour_hour"


Loading…
Cancel
Save