From 6ec12a036c96a200fc0a941967d6b4d07592f863 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 17 十二月 2020 14:31:17 +0800 Subject: [PATCH] Merge branch 'tzy' into NewFilePath --- HDL_ON/DAL/Server/NewApiRes.cs | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/HDL_ON/DAL/Server/NewApiRes.cs b/HDL_ON/DAL/Server/NewApiRes.cs index 8b7a67a..9b014e5 100644 --- a/HDL_ON/DAL/Server/NewApiRes.cs +++ b/HDL_ON/DAL/Server/NewApiRes.cs @@ -569,7 +569,24 @@ /// ON_LINE(0,"鍦ㄧ嚎"), /// OFF_LINE(1,"涓嬬嚎"),; /// </summary> - public bool gatewayStatus; + public string gatewayStatus; + /// <summary> + /// 缃戝叧鏄惁鍦ㄧ嚎 + /// </summary> + public bool GatewayOnline + { + get + { + if (gatewayStatus == "ON_LINE") + { + return true; + } + else + { + return false; + } + } + } ///// <summary> ///// -- Gitblit v1.8.0