wjc
7 天以前 84592c4547709d7f80771638a2a672cc4fb9b841
app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java
@@ -213,7 +213,7 @@
                                HouseIdBean houseIdBean = gson.fromJson(dataJsonStr, HouseIdBean.class);
                                HdlResidenceLogic.getInstance().switchHouse(houseIdBean, true);
                            }
                            HdlLogLogic.print("uin创建电站成功后通知---"+dataJsonStr, true);
                            HdlLogLogic.print("uin创建电站成功后通知---" + dataJsonStr, true);
                        } catch (Exception e) {
                            HdlLogLogic.print("uin创建电站成功后通知---" + e.getMessage(), true);
                        }
@@ -809,6 +809,36 @@
                    }
                    break;
                }
            } else if (HDLUniMP.UNI_EVENT_REPLY_NO_WORK_MODEL.equals(topic)) {
                //无网模式
                switch (type) {
                    case HDLUniMP.UNI_EVENT_REPLY_NO_WORK_MODEL_EXIT: {
                        //退出无网模式标识
                        UserConfigManage.getInstance().setNoNetworkFlag(false);
                        UserConfigManage.getInstance().Save();
                    }
                    break;
                    case HDLUniMP.UNI_EVENT_REPLY_NO_WORK_MODEL_DEVICE_INFO: {
                        try {
                            //进入无网模式逆变器详情页,缓存mac和密码
                            String mac = getKeyValue("mac", getKeyValue("data", data));
                            String password = getKeyValue("password", getKeyValue("data", data));
                            UserConfigManage.getInstance().setNoNetworkDeviceMac(mac);
                            UserConfigManage.getInstance().setNoNetworkPassword(password);
                            UserConfigManage.getInstance().Save();
                        } catch (Exception ignored) {
                        }
                    }
                    break;
                    case HDLUniMP.UNI_EVENT_REPLY_NO_WORK_MODEL_CLEAR_DEVICE_INFO: {
                        //无网模式逆变器详情页,清除缓存mac和密码
                        UserConfigManage.getInstance().setNoNetworkDeviceMac("");
                        UserConfigManage.getInstance().setNoNetworkPassword("");
                        UserConfigManage.getInstance().Save();
                    }
                    break;
                }
            } else if (HDLUniMP.UNI_EVENT_REPLY_UNI_SEND_TO_CLOUD.equals(topic)) {
                //网络请求模块
                JsonObject jObject = new JsonObject();