diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs index fe4718bf..5fd2990a 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs @@ -1019,12 +1019,16 @@ namespace DSWeb.Areas.MvcShipping.DAL return result; } - var feehead = JsonConvert.Deserialize(报关费用json); - var j2 = PublicAPIDAL.GuanMaoYun_Fee_Save(feehead); + if (!string.IsNullOrWhiteSpace(报关费用json)) + { + var feehead = JsonConvert.Deserialize(报关费用json); + var j2 = PublicAPIDAL.GuanMaoYun_Fee_Save(feehead); - if (!j2.Success) { - result.SetErrorInfo(j2.Message); - return result; + if (!j2.Success) + { + result.SetErrorInfo(j2.Message); + return result; + } } result.OK("导入完成");