| | |
| | | // Intent intent = new Intent(); |
| | | // intent.setClass(_mActivity, FastScanActivity.class); |
| | | // startActivity(intent); |
| | | String path = HDLUniMP.UNI_EVENT_OPEN_HOME_CREATION |
| | | + "&token=" + UserConfigManage.getInstance().getToken() |
| | | + "&refreshToken=" + UserConfigManage.getInstance().getRefreshToken() |
| | | + "®ionUrl=" + AppConfigManage.getUserRegionUrl(); |
| | | // // 打开小程序页面 |
| | | HdlUniLogic.getInstance().openUniMP(path, null); |
| | | HdlUniLogic.getInstance().openUniMP(HDLUniMP.UNI_EVENT_OPEN_HOME_CREATION, null); |
| | | } |
| | | |
| | | @Override |
| | |
| | | String path = HDLUniMP.UNI_EVENT_OPEN_HOME_DETAILS |
| | | + "?homeId=" + houseIdBean.getHomeId() |
| | | + "&homeName=" + houseIdBean.getHomeName() |
| | | + "&powerStationStatus=" + houseIdBean.getPowerStationStatus() |
| | | + "&serverAddress=" + AppConfigManage.getUserRegionUrl(); |
| | | + "&powerStationStatus=" + houseIdBean.getPowerStationStatus(); |
| | | HdlUniLogic.getInstance().openUniMP(path, null); |
| | | |
| | | } |
| | |
| | | |
| | | mPermissionsResultCallback = permissionsResultCallback; |
| | | |
| | | String[] s = new String[]{ |
| | | Manifest.permission.ACCESS_FINE_LOCATION, |
| | | Manifest.permission.CAMERA, |
| | | }; |
| | | String[] s = new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.CAMERA,}; |
| | | String[] ary = PermissionUtils.checkPermission(_mActivity, s); |
| | | if (ary.length > 0) { |
| | | requestPermissions(ary, PermissionUtils.STATUS_SUCCESS); |