Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="tid"></param>
 /// <param name="sessionKey"></param>
 /// <returns></returns>
 public List <Shipping> GetLogisticsBuyerInfo(long tid, string sessionKey)
 {
     try
     {
         ITopClient client = TBManager.GetClient();
         LogisticsOrdersDetailGetRequest req = new LogisticsOrdersDetailGetRequest();
         req.Fields = "receiver_location,receiver_phone,company_name,status";
         req.Tid    = tid;
         LogisticsOrdersDetailGetResponse response = client.Execute(req, sessionKey);
         return(response.Shippings);
     }
     catch (Exception ex)
     {
         ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Data);
     }
     return(null);
 }
Ejemplo n.º 2
0
 public static Trade GetTradeContact(long tid, string sessionKey)
 {
     try
     {
         ITopClient client           = TBManager.GetClient();
         TradeFullinfoGetRequest req = new TradeFullinfoGetRequest();
         req.Fields = "consign_time,receiver_mobile,receiver_city,receiver_name";
         req.Tid    = tid;
         TradeFullinfoGetResponse response = client.Execute(req, sessionKey);
         return(response.Trade);
     }
     catch (Exception ex)
     {
         CHENGTUAN.Components.ExceptionReporter.WriteLog(ex, CHENGTUAN.Entity.ExceptionPostion.TBApply_Components);
         return(null);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 查看当前卖家的物流状态
 /// </summary>
 /// <param name="tid"></param>
 /// <param name="seller_nick"></param>
 /// <returns></returns>
 public LogisticsTraceSearchResponse GetLogisticsInfo(long tid, string seller_nick)
 {
     try
     {
         ITopClient client = TBManager.GetClient();
         LogisticsTraceSearchRequest req = new LogisticsTraceSearchRequest();
         req.Tid        = tid;
         req.SellerNick = seller_nick;
         LogisticsTraceSearchResponse response = client.Execute(req);
         return(response);
     }
     catch (Exception ex)
     {
         ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Data);
     }
     return(null);
 }