Ejemplo n.º 1
0
        /// <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()));
        }
Ejemplo n.º 2
0
 public ActionResult GetRealTime(string no, string code)
 {
     return(Json(JsonConvert.DeserializeObject <DeliveryData>(DeliveryAPI.RequestRealTime(WebConfigBLL.MerchIdForDeliveryAPi, WebConfigBLL.AuthKeyForDeliveryAPI, no, code).ToString()), JsonRequestBehavior.AllowGet));
 }