Hidistro.Core/Express.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.Core
{
using System;
using System.IO;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
using System.Web;
using System.Xml;
public static class Express
{
public static string GetDataByKuaidi100(string computer, string expressNo, int show = 0)
{
HttpWebResponse response;
string str = "29833628d495d7a5";
string str2 = null;
HttpContext current = HttpContext.Current;
if (current != null)
{
str2 = current.Request.MapPath("~/Express.xml");
}
XmlDocument document = new XmlDocument();
if (!string.IsNullOrEmpty(str2))
{
document.Load(str2);
XmlNode node = document.SelectSingleNode("companys");
if (node != null)
{
str = node.Attributes["Kuaidi100NewKey"].Value;
}
}
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(string.Format("http://www.kuaidi100.com/query?type={0}&postid={1}", computer, expressNo));
request.Timeout = 0x1f40;
string str3 = "暂时没有此快递单号的信息";
try
{
response = (HttpWebResponse) request.GetResponse();
}
catch
{
return str3;
}
if (response.StatusCode == HttpStatusCode.OK)
{
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("UTF-8"));
str3 = reader.ReadToEnd().Replace("&", "").Replace(" ", "").Replace("&", "");
}
return str3;
}
public static string GetDataByTaobaoTop(string computer, string expressNo)
{
return "暂时没有此快递单号的信息";
}
public static string GetExpressData(string computer, string expressNo, int show = 0)
{
if (GetExpressType() == "kuaidi100")
{
后面还有 29 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
