| | |
| | | for (int i = 0; i < listId.Count; i++)
|
| | | {
|
| | | ZbGateway way = ZbGateway.GateWayList.Find((obj) => obj.GwId == listId[i]);
|
| | | if (way == null || way.localIsConnected == false)
|
| | | if (way == null)
|
| | | {
|
| | | //2020.09.18 本地连接没有连接上,则不处理
|
| | | continue;
|
| | | }
|
| | | //2020.09.18 本地连接没有连接上,则不处理
|
| | | if (way.localIsConnected == false)
|
| | | {
|
| | | string strMsg = "搜索到了网关,但是本地链接不上 ID:" + way.GwId + " IP:" + way.GwIP + " 名称:" + way.GwName;
|
| | | HdlLogLogic.Current.WriteLog(-1, strMsg);
|
| | | continue;
|
| | | }
|
| | |
|
| | |
| | | if (mode == GatewayBindMode.First || mode == GatewayBindMode.Binded)
|
| | | {
|
| | | //添加搜索到的网关到缓存(执行网关保存操作)
|
| | | var result = HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | var result = HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO, WriteLogMode.YES);
|
| | | if (result == false)
|
| | | {
|
| | | continue;
|