From b331c9990a0396301e934daffe095f99d62d1c89 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 27 九月 2023 15:58:49 +0800
Subject: [PATCH] 任务获取修改,状态2只返回已开始和已结束的

---
 service/device_plc.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/service/device_plc.go b/service/device_plc.go
index 2cac8b6..b0281dd 100644
--- a/service/device_plc.go
+++ b/service/device_plc.go
@@ -43,10 +43,10 @@
 func (slf DevicePlcService) GetDeviceChannelAmount() (int, error) {
 	plcConfig, code := slf.GetDevicePlc()
 	if code != ecode.OK || plcConfig.Id == 0 {
-		return 0, errors.New("璇峰厛閰嶇疆PLC")
+		return 0, errors.New("鏈幏鍙栧埌PLC鍦板潃锛岃鍦ㄥ伐鑹烘ā鍨嬪簱涓笂浼狅紒")
 	}
 	if len(plcConfig.Details) == 0 {
-		return 0, errors.New("璇峰厛閰嶇疆PLC")
+		return 0, errors.New("鏈幏鍙栧埌PLC鍦板潃锛岃鍦ㄥ伐鑹烘ā鍨嬪簱涓笂浼狅紒")
 	}
 	return len(plcConfig.Details) / 2, nil
 }

--
Gitblit v1.8.0