| | |
| | | |
| | | import android.app.Application; |
| | | import android.text.TextUtils; |
| | | import android.util.Log; |
| | | |
| | | import androidx.annotation.NonNull; |
| | | import androidx.lifecycle.MutableLiveData; |
| | |
| | | if (loginResponseBeanResultData.getCode() == CODE_SUCCESS){ |
| | | String token = loginResponseBeanResultData.getData().getToken(); |
| | | UserManager.getInstance().setToken(token); |
| | | ToastUtils.showShort("登陆成功"); |
| | | AppManager.getAppManager().startActivity(MainActivity.class); |
| | | AppManager.getAppManager().finishCurrentActivity(); |
| | | ToastUtils.showShort("登陆成功"); |
| | | }else { |
| | | changeStateView(StateViewEnum.DATA_ERROR); |
| | | messageLiveData.postValue(loginResponseBeanResultData.getMsg()); |