| | |
| | | if (isOpened) { |
| | | //安装商跳转界面 |
| | | Intent intent = new Intent(context, MyPowerStationActivity.class); |
| | | intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); |
| | | intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); |
| | | intent.putExtra("skip", "skip");//里面判断有这个标识就跳转到消息中心界面 |
| | | context.startActivity(intent); |
| | | |
| | |
| | | case HDLUniMP.UNI_EVENT_REPLY_USER_INFO: { |
| | | this.uniGetUserInfo(mode_type, data, callback); |
| | | } |
| | | break; |
| | | //用户头像(旧平台逻辑是头像单独获取下载地址) |
| | | case HDLUniMP.UNI_EVENT_REPLY_USER_IMAGE: { |
| | | uniGetImageKey(mode_type, data, callback); |
| | |
| | | |
| | | @Override |
| | | public void onFailure(HDLException e) { |
| | | uniCallbackData(type, null, e.getCode(), e.getMsg(), callback); |
| | | uniCallbackData(type, cUserInfo, callback); |
| | | } |
| | | }); |
| | | } |
| | |
| | | viewBinding.fragmentMeIconParentCl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | if (UserConfigManage.getInstance().isBAccount()) { |
| | | //todo B端不支持更改昵称 |
| | | HdlThreadLogic.toast(_mActivity, R.string.loading_not_supported); |
| | | return; |
| | | } |
| | | Intent intent = new Intent(); |
| | | intent.setClass(_mActivity, PersonalDataActivity.class); |
| | | if (mC_UserInfo == null) { |
| | |
| | | |
| | | @Override |
| | | public void onFailure(HDLException e) { |
| | | HdlLogLogic.print("uploadUserHeadImage error:" + e.getMsg()); |
| | | |
| | | HdlThreadLogic.toast(_mActivity, e); |
| | | // HdlLogLogic.print("uploadUserHeadImage error:" + error.getMsg()); |
| | | // hideLoading(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | @Override |
| | | public void onFailure(HDLException error) { |
| | | HdlLogLogic.print("uploadUserHeadImage error:" + error.getMsg()); |
| | | public void onFailure(HDLException e) { |
| | | // HdlThreadLogic.tipFlashingBox(_mActivity, false, e.getMsg(), e.getCode()); |
| | | HdlThreadLogic.toast(_mActivity, e); |
| | | } |
| | | }); |
| | | } |