| | |
| | | // viewBinding.homeLoginPasswordEt.setText(pws); |
| | | checkClearIconShowOrNot(viewBinding.homeLoginAccountEt.getText().toString()); |
| | | isLoginTextViewEnabled(); |
| | | if (UserConfigManage.getInstance().isBAccount()) { |
| | | boolean is_Authorization = SharedPreUtils.getBoolean("isAuthorization"); |
| | | if (!is_Authorization) { |
| | | //2025年03月03日14:45:17 杨涛要求b端账号需要检验权限 |
| | | HdlThreadLogic.toast(_mActivity, getString(R.string.forbidden_login)); |
| | | } |
| | | } |
| | | |
| | | } catch (Exception ignored) { |
| | | } |
| | | } |
| | |
| | | @Override |
| | | public void onSuccess(HDLLoginBean obj) { |
| | | if (UserConfigManage.getInstance().isBAccount()) { |
| | | SharedPreUtils.putBoolean("isAuthorization", true); |
| | | restoreButtonStyleToInitializeState(); |
| | | //安装商跳转界面 |
| | | startActivity(BPowerStationActivity.class); |
| | |
| | | // HdlAccountLogic.getInstance().getCompanyParterMenu_B(new CloudCallBeak<Boolean>() { |
| | | // @Override |
| | | // public void onSuccess(Boolean isBoolean) { |
| | | // SharedPreUtils.putBoolean("isAuthorization", isBoolean); |
| | | // if (isBoolean) { |
| | | // //2025年03月03日14:45:17 杨涛要求b端账号需要检验权限 |
| | | // restoreButtonStyleToInitializeState(); |
| | |
| | | // |
| | | // @Override |
| | | // public void onFailure(HDLException e) { |
| | | // SharedPreUtils.putBoolean("isAuthorization", false); |
| | | // hideLoading(); |
| | | // HdlThreadLogic.toast(_mActivity, e.getMsg() + "(" + e.getCode() + ")"); |
| | | // } |