切换账号登录MQTT未连接修改。

This commit is contained in:
2026-01-04 16:44:49 +08:00
parent 0e830e411a
commit b473751913
3 changed files with 2 additions and 12 deletions

View File

@@ -803,6 +803,7 @@ public class CommonAppContext extends MultiDexApplication implements Application
if (mqttConnect != null){
mqttConnect.close();
mqttConnect = null;
}
isLogout = true;

View File

@@ -506,7 +506,7 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
// 观察时间变化
scope.launch {
timer.timeLeft.collect { time ->
LogUtils.e("startTimer:" + time)
// LogUtils.e("startTimer:" + time)
if (time / 1000 <= 10) {
mBinding.tvJsq.visibility = View.VISIBLE
mBinding.tvJsq.text = (time / 1000).toString()

View File

@@ -321,17 +321,6 @@ public class PasswordLoginActivity extends BaseMvpActivity<LoginPresenter, Activ
UserBean userBean = CommonAppContext.getInstance().getUser();
// TUILogin.login(getBaseContext(), CommonAppContext.getInstance().getCurrentEnvironment().getSdkAppId(), "u"+userBean.getUser_id(), userBean.getTencent_im(), new TUICallback() {
// @Override
// public void onError(final int code, final String desc) {
// LogUtils.e("@@@",code,"描述:",desc);
// }
// @Override
// public void onSuccess() {
// LogUtils.e("@@@","成功");
//
// }
// });
if (userBean.getSex() == 0) {
Intent intent = new Intent(this, ImproveInfoActivity.class);
Bundle bundle = new Bundle();