From 6a5ea3391fd6d87ee43f408a69d09f7d6128a064 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 27 十一月 2023 16:43:08 +0800
Subject: [PATCH] 报工数据同步云端
---
api/v1/task.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/api/v1/task.go b/api/v1/task.go
index d65ab6c..afe8397 100644
--- a/api/v1/task.go
+++ b/api/v1/task.go
@@ -285,7 +285,7 @@
var processModelNumber string
plcConfig, code := service.NewDevicePlcService().GetDevicePlc()
- if code == ecode.OK && plcConfig.ID != 0 {
+ if code == ecode.OK && plcConfig.ID != 0 && len(plcConfig.Details) > 0 {
plcConfig.MaxTryTimes = 2
device, err := service.GetCurrentDevice()
if err != nil {
--
Gitblit v1.8.0