/// <summary> /// 查询实时物流信息轨迹 /// </summary> /// <param name="feedOrder"></param> /// <returns></returns> public DeliveryData GetRealTime(DeliveryFeedback feedOrder) { object result = DeliveryAPI.RequestRealTime(WebConfigBLL.MerchIdForDeliveryAPi, WebConfigBLL.AuthKeyForDeliveryAPI, feedOrder.DeliveryNo, feedOrder.CompanyCode); //object result = DeliveryAPI.RequestRealTime("1336595", "dcf8d02b-c3ed-4f48-8964-6e4ee6146a38", feedOrder.DeliveryNo, feedOrder.CompanyCode); return(JsonConvert.DeserializeObject <DeliveryData>(result.ToString())); }
public ActionResult GetRealTime(string no, string code) { return(Json(JsonConvert.DeserializeObject <DeliveryData>(DeliveryAPI.RequestRealTime(WebConfigBLL.MerchIdForDeliveryAPi, WebConfigBLL.AuthKeyForDeliveryAPI, no, code).ToString()), JsonRequestBehavior.AllowGet)); }