Dim postedJObject As JObject = New JObject()
postedJObject.Add("Platform", "拼多多申通")
postedJObject.Add("SendContact", "sir张")
postedJObject.Add("SendOfficePhone", "18225405356")
postedJObject.Add("UserId", "8989")
postedJObject.Add("SendCellPhone", "18225405356")
postedJObject.Add("SendState", "浙江省")
postedJObject.Add("SendCity", "金华市")
postedJObject.Add("SendDistrict", "义乌市")
postedJObject.Add("SendAddress", "柳青(五区)66栋")
postedJObject.Add("ProductTitle", "衣服")
postedJObject.Add("Weight", "2")
Dim jArray As JArray = New JArray()
Dim rOrder As JObject = New JObject()
rOrder.Add("OrderNo", "3112e2e2e111e")
rOrder.Add("Contact", "唐淑莲")
rOrder.Add("OfficePhone", "15672618101")
rOrder.Add("CellPhone", "15672618101")
rOrder.Add("State", "湖北省")
rOrder.Add("City", "黄冈市")
rOrder.Add("District", "英山县")
rOrder.Add("Address", "温泉镇西汤河民政局斜对面一修家电服务中心")
jArray.Add(rOrder)
Dim rOrder1 As JObject = New JObject()
rOrder1.Add("OrderNo", "3112e2e2e111e22")
rOrder1.Add("Contact", "唐淑莲")
rOrder1.Add("OfficePhone", "15672618101")
rOrder1.Add("CellPhone", "15672618101")
rOrder1.Add("State", "湖北省")
rOrder1.Add("City", "黄冈市")
rOrder1.Add("District", "英山县")
rOrder1.Add("Address", "温泉镇西汤河民政局斜对面一修家电服务中心")
jArray.Add(rOrder1)
postedJObject.Add("Raddress", jArray)
Dim 订单详情 As String = CompressJson(postedJObject)
Dim hc As new HttpClient("http://kongbao100.cn/OrderSubmit/index.asp")
hc.C
hc.FormData.Add("appKey","zto001")
hc.FormData.Add("logiType","buykongbao")
hc.FormData.Add("orders",订单详情 )
hc.FormData.Add("timestamp",Date.Now.ToString("yyyy-MM-dd HH:mm:ss"))
Dim dict As new Dictionary(of String, String)
dict.Add("appKey", "zto001")
dict.Add("logiType", "buykongbao")
dict.Add("orders", 订单详情)
dict.Add("timestamp", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"))
Dim 签名 As String = generateSign(dict)
hc.FormData.Add("sign",签名 )
dim ret = hc.GetData
msgbox(ret)