日期:2014-05-17 浏览次数:20489 次
SortedDictionary<string, string> sd = new SortedDictionary<string, string>();
int count = 0;
string sparam = "";
string key = "";
string value = "";
for (int i = 0; i < result.Length; i++)
{
sparam = result[i];
count = sparam.IndexOf('=');
key = sparam.Substring(0, count);
value = sparam.Substring(count + 1, sparam.Length - (count + 1));
sd.Add(key, value);
}
// 出错 给定关键字不在字典中?
string sign = sd["sign"];
//配置待签名数据
Dictionary<string, string> dicData = MobileFunction.FilterPara(sd);
string req_Data = MobileFunction.CreateLinkString(dicData);