fix:修改异常提示

This commit is contained in:
2025-03-26 13:01:53 +08:00
parent ee2115e367
commit 503ff3a73e
2 changed files with 13 additions and 6 deletions

View File

@@ -51,6 +51,13 @@ public class RegisterServiceImpl implements PrintService {
width = FIXED_WIDTH;
}
if ( StringUtils.isEmpty(printerConfig.getTimeType())){
throw new RRException("获取打印时间格式出错:" + printerConfig.getTimeType());
}
if ( StringUtils.isEmpty(printerConfig.getTerminalNumber())){
throw new RRException("获取终端号出错:" + printerConfig.getTerminalNumber());
}
// 强行设置终端号
data.put("terminalNumber", printerConfig.getTerminalNumber());