diff --git a/Myshipping.Application/Enum/BookingErrorCode.cs b/Myshipping.Application/Enum/BookingErrorCode.cs new file mode 100644 index 00000000..a1cb6827 --- /dev/null +++ b/Myshipping.Application/Enum/BookingErrorCode.cs @@ -0,0 +1,17 @@ +using Furion.FriendlyException; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Myshipping.Application.Enum +{ + public enum BookingErrorCode + { /// + /// 附件不存在 + /// + [ErrorCodeItemMetadata("附件不存在")] + BOOK200, + } +} diff --git a/Myshipping.Application/Myshipping.Application.xml b/Myshipping.Application/Myshipping.Application.xml index ae725a9b..1cf27b8b 100644 --- a/Myshipping.Application/Myshipping.Application.xml +++ b/Myshipping.Application/Myshipping.Application.xml @@ -2511,6 +2511,11 @@ 运踪id + + + 附件不存在 + + 多品名输出参数 diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 8fe7d8ee..71bf234b 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -35,6 +35,7 @@ using System.Text; using System.Web; using Newtonsoft.Json.Linq; using Myshipping.Core.Helper; +using Myshipping.Application.Enum; namespace Myshipping.Application { @@ -474,7 +475,7 @@ namespace Myshipping.Application //未上传打印模板文件 if (file == null || file.Length == 0) { - throw Oops.Oh(ErrorCode.BOOK113); + throw Oops.Oh(BookingErrorCode.BOOK200); } var opt = App.GetOptions(); diff --git a/Myshipping.Report/Myshipping.Report.csproj.user b/Myshipping.Report/Myshipping.Report.csproj.user index 5831b7bf..c54031d1 100644 --- a/Myshipping.Report/Myshipping.Report.csproj.user +++ b/Myshipping.Report/Myshipping.Report.csproj.user @@ -8,7 +8,7 @@ - Debug|Any CPU + Release|Any CPU