| | |
| | | for (int i = 0; i < listId.Count; i++)
|
| | | {
|
| | | ZbGateway way = ZbGateway.GateWayList.Find((obj) => obj.GwId == listId[i]);
|
| | | if (way == null)
|
| | | if (way == null || way.localIsConnected == false)
|
| | | {
|
| | | //2020.09.18 本地连接没有连接上,则不处理
|
| | | continue;
|
| | | }
|
| | |
|
| | |
| | | if (mode == GatewayBindMode.First || mode == GatewayBindMode.Binded)
|
| | | {
|
| | | //我觉得这里需要获取一下新网关的设备列表
|
| | | Common.LocalDevice.Current.SetDeviceToMemmoryByGateway(way, true);
|
| | | Common.LocalDevice.Current.SetDeviceToMemmoryByGateway(way.GwId, true);
|
| | | if (way.IsMainGateWay == true)
|
| | | {
|
| | | //如果它是主网关,则刷新场景列表
|