/// <summary> /// 获取要加密签名的串 /// </summary> /// <param name="separator"></param> /// <returns></returns> protected override StringBuilder GetSignContent(char separator) { var strTicketParas = new StringBuilder(); if (AppClient > 0) { AddTicketProperty("app_client", AppClient.ToString(), separator, strTicketParas); } AddTicketProperty("app_source", AppSource, separator, strTicketParas); AddTicketProperty("app_version", AppVersion, separator, strTicketParas); AddTicketProperty("device_id", DeviceId, separator, strTicketParas); AddTicketProperty("ip_address", IpAddress, separator, strTicketParas); AddTicketProperty("pro_code", ProCode, separator, strTicketParas); if (TenantId > 0) { AddTicketProperty("tenant_id", TenantId.ToString(), separator, strTicketParas); } AddTicketProperty("timespan", TimeSpan.ToString(), separator, strTicketParas); AddTicketProperty("token", Token, separator, strTicketParas); AddTicketProperty("web_browser", WebBrowser, separator, strTicketParas); return(strTicketParas); }
/// <summary> /// 获取要加密签名的串 /// </summary> /// <param name="separator"></param> /// <returns></returns> protected internal virtual StringBuilder GetSignContent(char separator) { var strTicketParas = new StringBuilder(); if (AppClient > 0) { AddSignDataValue("ac", AppClient.ToString(), separator, strTicketParas); } AddSignDataValue("as", AppSource, separator, strTicketParas); AddSignDataValue("av", AppVersion, separator, strTicketParas); AddSignDataValue("did", DeviceId, separator, strTicketParas); AddSignDataValue("ip", IpAddress, separator, strTicketParas); AddSignDataValue("pc", ProCode, separator, strTicketParas); if (TenantId > 0) { AddSignDataValue("tid", TenantId.ToString(), separator, strTicketParas); } AddSignDataValue("ts", TimeSpan.ToString(), separator, strTicketParas); AddSignDataValue("tn", Token, separator, strTicketParas); AddSignDataValue("wb", WebBrowser, separator, strTicketParas); return(strTicketParas); }