打印接口校验打印内容

usertest
cjy 4 months ago
parent 3110c5d0ef
commit eb84e51b45

@ -27,7 +27,10 @@ namespace DS.WMS.PrintApi.Service
{ {
return await Task.FromResult(PrintDataResult.Failed("非Json打印接口!")); return await Task.FromResult(PrintDataResult.Failed("非Json打印接口!"));
} }
if (String.IsNullOrEmpty(template.PrintJsonContent))
{
return await Task.FromResult(PrintDataResult.Failed("打印模板内容不能为空!"));
}
try try
{ {
var basePath = String.Empty; var basePath = String.Empty;
@ -114,7 +117,10 @@ namespace DS.WMS.PrintApi.Service
{ {
return await Task.FromResult(PrintDataResult.Failed("非Json打印接口!")); return await Task.FromResult(PrintDataResult.Failed("非Json打印接口!"));
} }
if (String.IsNullOrEmpty(template.PrintJsonContent))
{
return await Task.FromResult(PrintDataResult.Failed("打印模板内容不能为空!"));
}
try try
{ {
var basePath = String.Empty; var basePath = String.Empty;

Loading…
Cancel
Save