| | |
| | | TipDialog("请先选择住宅进行测试,否则无法进行逆变器指令测试.", null); |
| | | return; |
| | | } |
| | | GatewayBean gatewayBean = HdlDeviceLogic.getInstance().getCurrentHomeMainGateway(UserConfigManage.getInstance().getHomeId()); |
| | | if (gatewayBean == null && !title.equals("搜索【所有】逆变器列表(0)") && !title.equals("搜索【住宅】逆变器列表(1)")) { |
| | | List<GatewayBean> list = HdlDeviceLogic.getInstance().getCurrentHomeGatewayList(UserConfigManage.getInstance().getHomeId()); |
| | | if (list == null &&list.size()==0 && !title.equals("搜索【所有】逆变器列表(0)") && !title.equals("搜索【住宅】逆变器列表(1)")) { |
| | | // TODO: 10/30/23 找不到住宅的主逆变器,请先确认是否绑定逆变器,再进行逆变器指令测试 |
| | | TipDialog("找不到住宅的【主逆变器】,请先确认是否绑定过逆变器,再进行逆变器指令测试.", null); |
| | | return; |
| | | } |
| | | showLoading(); |
| | | startRequest(position, gatewayBean); |
| | | startRequest(position, list.get(0)); |
| | | } |
| | | }); |
| | | } |