| | |
| | | import android.os.Bundle; |
| | | |
| | | import com.hdl.linkpm.sdk.core.exception.HDLException; |
| | | import com.hdl.linkpm.sdk.user.HDLLinkPMUser; |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.base.CustomBaseActivity; |
| | | import com.hdl.photovoltaic.config.AppConfigManage; |
| | | import com.hdl.photovoltaic.config.UserConfigManage; |
| | | import com.hdl.photovoltaic.internet.HttpServer.MyNanoHttpService; |
| | | import com.hdl.photovoltaic.listener.CloudCallBeak; |
| | | import com.hdl.photovoltaic.other.HdlResidenceLogic; |
| | | import com.hdl.photovoltaic.ui.bean.HouseIdBean; |
| | |
| | | |
| | | @Override |
| | | public void onBindView(Bundle savedInstanceState) { |
| | | setNotificationBarBackgroundColor(CustomColor.white); |
| | | setStatusBarTextColor(); |
| | | //初始化服务器域名(用户注册所在服务器域名地址) |
| | | AppConfigManage.setUserRegionUrl(HDLLinkPMUser.getInstance().getUserRegionUrl()); |
| | | //7天内免登录 |
| | | if (UserConfigManage.getInstance().isAutoLogin()) { |
| | | // showLoading(); |
| | |
| | | public void onSuccess(List<HouseIdBean> obj) { |
| | | // hideLoading(); |
| | | HdlResidenceLogic.getInstance().setHouseIdList(obj); |
| | | |
| | | Intent intent = new Intent(); |
| | | intent.setClass(StartActivity.this, MyPowerStationActivity.class); |
| | | if (UserConfigManage.getInstance().isBAccount()) { |
| | | //安装商跳转界面 |
| | | intent.setClass(StartActivity.this, MyPowerStationActivity.class); |
| | | } else { |
| | | //C端用户跳转界面 |
| | | intent.setClass(StartActivity.this, CPowerStationActivity.class); |
| | | } |
| | | startActivity(intent); |
| | | finish(); |
| | | } |
| | |
| | | public void onFailure(HDLException e) { |
| | | // hideLoading(); |
| | | Intent intent = new Intent(); |
| | | intent.setClass(StartActivity.this, MyPowerStationActivity.class); |
| | | if (UserConfigManage.getInstance().isBAccount()) { |
| | | //安装商跳转界面 |
| | | intent.setClass(StartActivity.this, MyPowerStationActivity.class); |
| | | } else { |
| | | //C端用户跳转界面 |
| | | intent.setClass(StartActivity.this, CPowerStationActivity.class); |
| | | } |
| | | startActivity(intent); |
| | | finish(); |
| | | } |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |