/// <summary>
 /// 生成授权码
 /// </summary>
 /// <param name="authorizationCode">授权信息</param>
 /// <param name="sPublicKey">公钥</param>
 /// <returns></returns>
 public static string Encrypt(AuthorizationCode authorizationCode, string sPublicKey)
 {
     return(Encrypt(authorizationCode.Mac, authorizationCode.ExpireTime.Value, authorizationCode.Category,
                    sPublicKey));
 }
 /// <summary>
 /// 生成授权码
 /// </summary>
 /// <param name="authorizationCode">授权信息</param>
 /// <param name="privateKey">私钥</param>
 /// <returns></returns>
 public static string Encrypt(AuthorizationCode authorizationCode, string privateKey)
 {
     return(Encrypt(authorizationCode.CheckCode, authorizationCode.ExpireTime.Value, authorizationCode.Category,
                    privateKey));
 }