Explorar o código

fix:用户报告阅读记录

Roc hai 11 meses
pai
achega
77b6bc8170
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      controllers/company_user.go

+ 4 - 2
controllers/company_user.go

@@ -3193,7 +3193,8 @@ func (this *CompanyUserController) ViewReportList() {
 			} else {
 				lastViewTimeT = time.Now()
 			}
-			lastViewTime = lastViewTimeT.Format(utils.FormatDateTime)
+			// 默认要把最新的记录列出来,所以往后加1s
+			lastViewTime = lastViewTimeT.Add(1 * time.Second).Format(utils.FormatDateTime)
 		}
 	// 权益
 	case 2: // ficc
@@ -3207,7 +3208,8 @@ func (this *CompanyUserController) ViewReportList() {
 			} else {
 				lastViewTimeT = time.Now()
 			}
-			lastViewTime = lastViewTimeT.Format(utils.FormatDateTime)
+			// 默认要把最新的记录列出来,所以往后加1s
+			lastViewTime = lastViewTimeT.Add(1 * time.Second).Format(utils.FormatDateTime)
 		}
 	default:
 		if lastViewTimeT.IsZero() {