|
@@ -54,9 +54,10 @@ func Tick(c *gin.Context) {
|
|
|
|
|
|
result := mapper.SelectLatestByTeamName(teamName)
|
|
|
if len(result) == 1 {
|
|
|
- c_log.GlobalLogger.Info("上一条数据记录为:", result[0])
|
|
|
|
|
|
- if time.Since(result[0].BeginTime).Minutes() < 2 {
|
|
|
+ temp := time.Since(result[0].BeginTime).Minutes()
|
|
|
+ c_log.GlobalLogger.Infof("上一条数据记录为【%v】,距离当前时间为【%v】分钟", result[0].Id, temp)
|
|
|
+ if temp < 2 {
|
|
|
|
|
|
cacheTeamName.Store(teamName, time.Now())
|
|
|
|