/// <summary>
/// </summary>
private void HttpGet()
{
var dt = LoadCarChildList();
if (dt == null || dt.Rows.Count == 0) return;
foreach (DataRow item in dt.Rows)
{
lock (_objfrWzMsgLock)
{
string url = string.Format(urlCopy, HttpUtility.UrlEncode(item["vehicleNum"].ToString(), System.Text.Encoding.UTF8), GetLastStr(carCode, 6), GetLastStr(carNumber, 6));
var tempMsg333 = "车牌ID:" + item[0].ToString() + "---" + "车牌号:" + item[1].ToString() + "用户名:" + item[4].ToString();
Logging.GetInstance().WriteLog(tempMsg333, Program.carListLog);
Request.Get(url, null, result =>
{
var tempMsg = "车牌ID:" + item[0].ToString() + "---" + "车牌号:" + item[1].ToString() + "用户名:" + item[4].ToString();
InsertPushInfo(item[0].ToString(), item[1].ToString(), item[4].ToString());
}, e =>
{
});
}
}
}
tempMsg333值是正常的 是for里面的 循环
但是在 Request.Get里面取 结果是for里面最后一个值 ? 上面用了lock 怎么
Request.Get是个Redslide.HttpLib开源社区的 http请求类