打印接口校验打印内容

usertest
cjy 4 months ago
parent 3110c5d0ef
commit eb84e51b45

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

Loading…
Cancel
Save