예제 #1
0
 public static CurrentUser FromJson(string json)
 {
     return(JsonHelper.DeserializeObject <CurrentUser>(Base64.Base64ToString(Des.DecryptDES(json))));
 }
예제 #2
0
        ///// <summary>
        /////
        ///// </summary>
        //public string LoginToken { get; set; }

        ///// <summary>
        /////
        ///// </summary>
        //public DateTime LoginTime { get; set; }



        /// <summary>
        ///
        /// </summary>
        //   public List<RoleAuthorize> RoleAuthorizelist  { get; set; }



        public override string ToString()
        {
            return(Des.EncryptDES(Base64.StringToBase64(JsonConvert.SerializeObject(this))));
        }