public List <TodoEntity> GetToDoList(string loginName, string token, string ErrorStr = "") { string str = SecurityBll.Decode(token); string[] strList = str.Split(';'); string name = strList[0]; DateTime dateNow = DateTime.Parse(strList[1]); DateTime CurrentTime = DateTime.Now.AddHours(-8); if (CurrentTime > dateNow) { ErrorStr = "令牌超时"; } List <TodoEntity> list = new List <TodoEntity>(); if (loginName == name && ErrorStr == "") { UserInfo user = new UserInfo(); list = ToDoServiceBll.ToDoServiceBll.GetTodoList(loginName, user); } return(list); }