Browse Source

fix:修复时间显示

zqbao 9 months ago
parent
commit
f673d49ec7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      controllers/user.go

+ 4 - 0
controllers/user.go

@@ -489,6 +489,10 @@ func (this *UserAuthController) Info() {
 		Status:         user.Status,
 		ValidEndTime:   user.ValidEndTime.Format(utils.FormatDate),
 	}
+
+	if user.ValidEndTime.IsZero() {
+		userView.ValidEndTime = ""
+	}
 	br.Data = userView
 	br.Msg = "查询成功"
 	br.Success = true