diff --git a/server/service/staff_user.go b/server/service/staff_user.go index ae286ea..8c3d682 100644 --- a/server/service/staff_user.go +++ b/server/service/staff_user.go @@ -40,7 +40,7 @@ func (s *StaffUser) Login(sess *session.AdminSession, req *api.StaffLoginReq) in token := new(model.StaffToken) token.UserId = user.Id - token.ExpireTime = time.Now().Unix() + 86400 + token.ExpireTime = time.Now().Unix() + 86400*30 token.Token = uuid.New().String() _, err = dao.NewStaffTokenDao().Create(token) session.CheckDBError(err)