예제 #1
0
 public JielinkApi()
 {
     if (proxyApi == null)
     {
         proxyApi = new InterfaceHttpProxyApi(CommonSettings.BaseAddressJS, 1);
     }
 }
예제 #2
0
        public ParkPlaceRes GetParkPlaceCount()
        {
            //请求JieLink车场数据,parkId使用不到
            string parkId = CommonSettings.ParkLotCode;;
            InterfaceHttpProxyApi requestApi = new InterfaceHttpProxyApi(CommonSettings.BaseAddressJS);
            var res = requestApi.PostRaw <ParkPlaceRes>("parking/place", parkId);

            if (!res.successed)
            {
                LogHelper.Error("请求JieLink出错" + res.code);
            }
            return(res.data);
        }