Exemplo n.º 1
0
        private List <PriceProviderResult> PostCustomerTypePrices(FreightPackageModel package)
        {
            var result = new List <PriceProviderResult>();

            try
            {
                var list =
                    HttpHelper.DoRequest <List <PriceProviderResult> >(
                        sysConfig.LISAPIPath + "API/LIS/PostCustomerTypeSpecialPrices", EnumHttpMethod.POST,
                        EnumContentType.Json, package);
                result = list.Value;
                Log.Info(list.RawValue);
            }
            catch (Exception ex)
            {
                Log.Error("错误地址:" + sysConfig.LISAPIPath + "API/LIS/PostCustomerTypeSpecialPrices");
                Log.Exception(ex);

                /*result.CanShipping = false;
                 * result.Message = ex.Message;*/
            }
            return(result);
        }
Exemplo n.º 2
0
 public List <PriceProviderResult> GetCustomerShippingPrices(FreightPackageModel customerPackageModel)
 {
     //return PostCustomerTypePrices(customerPackageModel);
     return(PostCustomerPrices(customerPackageModel));
 }