/// <summary>
/// 生成签名,key为空时,不加入加密
/// </summary>
public static string GetSigns(Dictionary<string, string> nativeObj, string key)
{
string sign = "";
Dictionary<string, string> newobj = new Dictionary<string, string>();
string temp = "";
var dicSort = from objDic in nativeObj where objDic.Value != "" orderby objDic.Key select objDic;
foreach (var item in dicSort)
{
if (temp != "")
temp += "&";
temp += item.Key + "=" + item.Value;
}
if (!string.IsNullOrEmpty(key))
temp += "&key=" + key;
return temp ;
}