//获取请求头中uid
public int getUid()
{
IEnumerable<string> uid;
Request.Headers.TryGetValues("uid", out uid);
List<string> arr = uid.ToList();
int id = Convert.ToInt32(arr[0]);
return id;
}
获取请求头中UID
最新推荐文章于 2024-12-11 04:45:00 发布
//获取请求头中uid
public int getUid()
{
IEnumerable<string> uid;
Request.Headers.TryGetValues("uid", out uid);
List<string> arr = uid.ToList();
int id = Convert.ToInt32(arr[0]);
return id;
}
>