|
@@ -63,6 +63,12 @@ func AutoCountTeamAssistance() { |
|
|
} |
|
|
} |
|
|
assistedUserDetails[i] = m |
|
|
assistedUserDetails[i] = m |
|
|
} |
|
|
} |
|
|
|
|
|
_, err = db.Db.Insert(&assistedUserDetails) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
fmt.Println(err) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 保存助力信息到 redis |
|
|
// 保存助力信息到 redis |
|
|
cacheKey := fmt.Sprintf("EggEnergyTeamAssistance:%d", signIn.Uid) |
|
|
cacheKey := fmt.Sprintf("EggEnergyTeamAssistance:%d", signIn.Uid) |
|
|
targetTime, err1 := time.Parse("2006-01-02 15:04:05", signIn.EndTime) |
|
|
targetTime, err1 := time.Parse("2006-01-02 15:04:05", signIn.EndTime) |
|
|