refactor: 引入dayjs、新增refreshToken无感刷新、团队新增有效期、数据库等问题修复

This commit is contained in:
meilin.huang
2024-05-13 19:55:43 +08:00
parent 137ebb8e9e
commit 89e12678eb
54 changed files with 500 additions and 460 deletions

View File

@@ -31,7 +31,8 @@ func (j JsonTime) MarshalJSON() ([]byte, error) {
func (j *JsonTime) UnmarshalJSON(b []byte) error {
s := strings.ReplaceAll(string(b), "\"", "")
t, err := time.Parse(timex.DefaultDateTimeFormat, s)
// t, err := time.Parse(timex.DefaultDateTimeFormat, s)
t, err := time.ParseInLocation(timex.DefaultDateTimeFormat, s, time.Local)
if err != nil {
return err
}