Browse Source

还原周度数据代码

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/3557/head
zouap 2 years ago
parent
commit
c096dbf2d7
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      models/user_business_analysis.go

+ 1
- 2
models/user_business_analysis.go View File

@@ -891,8 +891,6 @@ func getBonusWeekDataMap() map[int64][]int {
if strings.HasSuffix(filenames[i], "\r") {
filenames[i] = filenames[i][0 : len(filenames[i])-len("\r")]
}
week, num := getWeekAndNum(filenames[i])
log.Info("filenames[i]=" + filenames[i] + "week=" + fmt.Sprint(week) + " num=" + fmt.Sprint(num))
url = setting.RecommentRepoAddr + "bonus/weekdata/" + filenames[i]
csvContent, err1 := GetContentFromPromote(url)
if err1 == nil {
@@ -910,6 +908,7 @@ func getBonusWeekDataMap() map[int64][]int {
userId := getInt64Value(aLine[0])
order := getIntValue(aLine[2])
money := getIntValue(aLine[3])
week, num := getWeekAndNum(filenames[i])
//log.Info("userId=" + fmt.Sprint(userId) + " order=" + fmt.Sprint(order) + " money=" + fmt.Sprint(money) + " week=" + fmt.Sprint(week) + " num=" + fmt.Sprint(num))
//email := lines[2]
record, ok := bonusMap[userId]


Loading…
Cancel
Save