public ActionResult OrderChangeMsg()
{
string resultInfo = Request.QueryString.ToString();
if (!string.IsNullOrEmpty(resultInfo))
{
string alipayPublicKey =“19999”;
string charset = "utf-8";
string[] par = resultInfo.Split('&');
var param = new Dictionary<string, string>();
foreach (var item in par)
{
string[] arr = item.Split('='); //通过"="号分割成2个数据
string[] tempAagin = new string[arr.Length]; //再开辟一个数组用来接收分割后的数据
for (int j = 0; j < arr.Length; j++)
{
if (arr[0] == "approval_status" || arr[0] == "batch_trans_id")
FileLog.WriteLog(arr[0] + ":" + arr[1]);
tempAagin[j] = arr[j];
}
param.Add(tempAagin[0], tempAagin[1]);
}
return Content("12");
}
else
{
return Content("12");
}
}
执行结果如下,为什么会出现这种错误