Browse Source

update

master
shenjiachi 1 day ago
parent
commit
49d24c6bb0
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      app/task/svc/svc_team_assistance_count.go

+ 6
- 0
app/task/svc/svc_team_assistance_count.go View File

@@ -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)


Loading…
Cancel
Save