HDL-ON_Android/Resources/Resource.designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/DAL/Server/HttpUtil.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
HDL-ON_Android/Resources/Resource.designer.cs
@@ -15,7 +15,7 @@ { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.1.111")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.0.99")] public partial class Resource { HDL_ON/DAL/Server/HttpUtil.cs
@@ -18,8 +18,8 @@ /// 固定域名,正式环境 /// 公共域名就近解析 /// </summary> public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; //public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; const string APP_KEY = "HDL-HOME-APP-TEST"; const string SECRET_KEY = "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss"; HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic; using HDL_ON.Entity; using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock; using Com.Alibaba.Fastjson; namespace HDL_ON.UI.UI2.Intelligence.Automation { @@ -1304,8 +1305,10 @@ if (indexeList.Count > 0) { dicSateteList.Clear(); string s = string.Empty; string seleTxet = string.Empty; string tag = string.Empty; string[] array = new string[indexeList.Count]; for (int i = 0; i < indexeList.Count; i++) { if (i > faceIdList.Count) @@ -1314,15 +1317,15 @@ } var indexe = indexeList[i]; var face = faceIdList[indexe]; //数据封装<高胜说萤石那边是推送用户名> AddDictionary("open_user", face.userName, "string"); s += face.userName; s += ","; tag += face.userId; tag += "_"; array[i] = face.userName; } seleTxet= JSON.ToJSONString(array); //数据封装<高胜说萤石那边是推送用户名> AddDictionary("open_user",seleTxet, "string", "[]"); //界面显示选中值 btnState.Text = s; btnState.Text = InpOrOutLogicMethod.Current.RemoveLastStr(seleTxet); btnState.Tag = tag; } HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -418,7 +418,7 @@ break; case SPK.VideoDoorLock: { string s = string.Empty; string userName = string.Empty; string tag = string.Empty; for (int b = 0; b < dicList.Count; b++) { @@ -429,11 +429,9 @@ //s += ","; //tag += FaceItem.userId; //tag += "_"; var userName = dic["value"].ToString(); s += userName; s += ","; userName = dic["value"].ToString(); } inputView.btnState.Text = s; inputView.btnState.Text = RemoveLastStr(userName); } break; case SPK.doorgate: @@ -1502,7 +1500,8 @@ if (stateStr.StartsWith(";")) { stateStr = stateStr.Substring(1, stateStr.Length - 1); } else if (stateStr.EndsWith(Language.StringByID(StringId.volumeMusic))) } else if (stateStr.EndsWith(Language.StringByID(StringId.volumeMusic))) { stateStr = stateStr.Substring(0, stateStr.Length - 3); } @@ -2460,7 +2459,7 @@ break; case SPK.VideoDoorLock: { string s = string.Empty; string userName = string.Empty; string tag = string.Empty; for (int b = 0; b < dicList.Count; b++) { @@ -2471,11 +2470,10 @@ //s += ","; //tag += FaceItem.userId; //tag += "_"; var userName = dic["value"].ToString(); s += userName; s += ","; userName = dic["value"].ToString(); } button1.Text = s; button1.Text = RemoveLastStr(userName); button1.Tag = tag; } break; @@ -3106,6 +3104,20 @@ return face; } /// <summary> /// 删除最后一个 "," /// </summary> /// <param name="s">字符串</param> /// <returns></returns> public string RemoveLastStr(string s) { if (string.IsNullOrEmpty(s)) { return string.Empty; } return s.Replace("[","").Replace("]","").Replace("\"","").TrimEnd(','); } } }