コード例 #1
0
        private PriceProviderResult PostCustomerTypePrice(CustomerPackageModel package)
        {
            var result = new PriceProviderResult();

            try
            {
                var list =
                    HttpHelper.DoRequest <PriceProviderResult>(
                        sysConfig.LISAPIPath + "API/LIS/PostCustomerTypeSpecialPrice", EnumHttpMethod.POST,
                        EnumContentType.Json, package);
                result = list.Value;
                Log.Info(list.RawValue);
            }
            catch (Exception ex)
            {
                Log.Error("错误地址:" + sysConfig.LISAPIPath + "API/LIS/PostCustomerTypePrice");
                Log.Exception(ex);
                result.CanShipping = false;
                result.Message     = ex.Message;
            }
            return(result);
        }
コード例 #2
0
 public PriceProviderResult GetCustomerShippingPrice(CustomerPackageModel customerPackageModel)
 {
     return(PostCustomerTypePrice(customerPackageModel));
 }