mac
2024-07-01 46f45f42abf00acf70e8160e73faa71aec3df13d
app/src/main/java/com/hdl/photovoltaic/ui/CPowerStationActivity.java
@@ -5,6 +5,7 @@
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.Log;
import com.google.gson.Gson;
@@ -208,11 +209,7 @@
        List<HouseIdBean> HouseIdList = HdlResidenceLogic.getInstance().getHouseIdList();
        if (HouseIdList.size() == 0) {
            String path = HDLUniMP.UNI_EVENT_OPEN_HOME_Null_C;
            if(delay){
                HdlUniLogic.getInstance().openUniMPDelay(path, null);
            }else {
                HdlUniLogic.getInstance().openUniMP(path, null);
            }
            HdlUniLogic.getInstance().openUniMP(path, null);
        } else {
            int select_home = 0;
            for (int i = 0; i < HouseIdList.size(); i++) {
@@ -224,11 +221,7 @@
            HouseIdBean houseIdBean = HouseIdList.get(select_home);
            HdlResidenceLogic.getInstance().switchHouse(houseIdBean);
            String path = HDLUniMP.UNI_EVENT_OPEN_HOME_DETAILS_C + "?homeId=" + houseIdBean.getHomeId() + "&homeName=" + houseIdBean.getHomeName() + "&powerStationStatus=" + houseIdBean.getPowerStationStatus();
            if(delay) {
                HdlUniLogic.getInstance().openUniMPDelay(path, null);
            }else {
                HdlUniLogic.getInstance().openUniMP(path, null);
            }
            HdlUniLogic.getInstance().openUniMP(path, null);
        }
    }