Пример #1
0
        /// <summary>
        /// 获取订单
        /// </summary>
        /// <param name="groupId"></param>
        /// <returns></returns>
        public ResponseData <CoffeeOrder> GetOrder(string groupId)
        {
            string takedateUrl = string.Format("api/Coffee/GetOrderDetail?groupId={0}", groupId);
            var    fullPath    = ETong.Coffee.Web.Models.Config.GetApiFullPath(takedateUrl);
            var    client      = new HttpClientUtility(new Uri(fullPath));

            Logger.Write(Log.Log_Type.Info, string.Format("调用{0}", fullPath));
            var result = SecurityHttpClient.Get <ResponseData <CoffeeOrder> >(fullPath);

            Logger.Write(Log.Log_Type.Info, string.Format("{0}结束,result={1}", fullPath, Json(result.dataMap)));
            return(result.dataMap);
        }
Пример #2
0
 private void Button_Click_3(object sender, RoutedEventArgs e)
 {
     var xx = SecurityHttpClient.Get <string>("http://localhost:27215/api/Values?id=1");
 }