/// <summary> /// 获取出服务商价格(成本价) /// </summary> /// <param name="package"></param> /// <returns></returns> private PriceProviderResult PostVenderPrice(VenderPackageModel package) { var result = new PriceProviderResult(); try { var list = HttpHelper.DoRequest <PriceProviderResult>(MyConfig.PostVenderPriceUrl, EnumHttpMethod.POST, EnumContentType.Json, package); result = list.Value; Log.Info(list.RawValue); } catch (Exception ex) { result.CanShipping = false; result.Message = ex.Message; } return(result); }
private PriceProviderResult PostVenderPrice(VenderPackageModel package) { var result = new PriceProviderResult(); try { var list = HttpHelper.DoRequest <PriceProviderResult>(sysConfig.LISAPIPath + "API/LIS/PostVenderPrice", EnumHttpMethod.POST, EnumContentType.Json, package); result = list.Value; Log.Info(list.RawValue); } catch (Exception ex) { Log.Error("错误地址:" + sysConfig.LISAPIPath + "API/LIS/PostVenderPrice"); Log.Exception(ex); result.CanShipping = false; result.Message = ex.Message; } return(result); }
public PriceProviderResult GetVenderShippingPrice(VenderPackageModel venderPackageModel) { return(PostVenderPrice(venderPackageModel)); }