打印机类型

This commit is contained in:
2025-12-29 15:47:02 +08:00
parent 057f851dcf
commit 76f6e7776e
2 changed files with 2 additions and 3 deletions

View File

@@ -187,7 +187,7 @@ public class PrintMachineLogServiceImpl extends ServiceImpl<PrintMachineLogMappe
Map<Integer, String> yxxStatusMap = MapUtil.builder(0, "离线(设备上线后自动补打)").put(1, "在线").put(2, "获取失败").put(3, "未激活").put(4, "设备已禁用").build();
// 云想印
if ("".equals(config.getContentType())) {
if ("".equals(config.getContentType())) {
cn.hutool.json.JSONObject resp = JSONUtil.parseObj(respJson);
int code = resp.getInt("code");
cn.hutool.json.JSONObject data = resp.getJSONObject("data").getJSONObject("data");
@@ -240,7 +240,7 @@ public class PrintMachineLogServiceImpl extends ServiceImpl<PrintMachineLogMappe
super.save(entity);
// 云想印
if ("".equals(config.getContentType())) {
if ("".equals(config.getContentType())) {
// 延迟3ms复查打印状态 (用户可以根据设备信息查询到当前设备的在线情况该接口只能提供参考设备的离线状态是在设备离线3分钟后才会生效)
ThreadUtil.safeSleep(1000 * 5);
String jsonStr = checkPrintStatus(config.getAddress(), entity.getTaskId());