|
|
@@ -893,12 +893,14 @@ func getBonusWeekDataMap() map[int64][]int { |
|
|
|
//read csv |
|
|
|
lines := strings.Split(csvContent, "\n") |
|
|
|
for j := 1; j < len(lines); j++ { |
|
|
|
if strings.HasSuffix(lines[j], "\01503d") { |
|
|
|
lines[j] = lines[j][0 : len(lines[j])-len("\01503d")] |
|
|
|
} |
|
|
|
log.Info("aLine=" + lines[j]) |
|
|
|
aLine := strings.Split(lines[j], ",") |
|
|
|
if len(aLine) < 4 { |
|
|
|
continue |
|
|
|
} |
|
|
|
log.Info("aLine=" + lines[j]) |
|
|
|
|
|
|
|
userId := getInt64Value(aLine[0]) |
|
|
|
order := getIntValue(aLine[2]) |
|
|
|
money := getIntValue(aLine[3]) |
|
|
|