/// <summary> /// 获取签名 /// </summary> /// <param name="inputObj"></param> /// <param name="key"></param> /// <returns></returns> public static string GetSign(SignData inputObj, string key) { return(inputObj.GetSign(key)); }
/// <summary> /// 获取带有sign的请求参数 /// </summary> /// <param name="inputObj"></param> /// <param name="key"></param> /// <returns></returns> public static string GetPostData(SignData inputObj, string key) { inputObj.SetValue("sign", inputObj.GetSign(key)); return(inputObj.ToUrlAll()); }