Exemple #1
0
 public static string CreateAccessToken(Token token)
 {
     if (token.UserId.IsNullEmpty())
     {
         throw new ArgumentException("UserId不能为空", "UserId");
     }
     return(SecurityHelper.AESEncryptString(token.ToJson()));
 }