Commit c8c304e6 by han xu

身份验证增加更新功能

parent ae928eb8
......@@ -40,6 +40,10 @@ public class UserInfoPresenter extends UserInfoContract.Presenter {
mView.setcertificationStatus(mDetectStatus);
}
public void setmDetectStatus (int detectStatus){
mDetectStatus = detectStatus;
}
@Override
public void queryInfo(int accountId) {
......
......@@ -64,6 +64,17 @@ public class UserInfoActivity extends BaseActivity<UserInfoPresenter, ActivityUs
mPresenter.getRuler();
}
private void updateDetectStatus() {
Api.getService(com.dayu.base.api.APIService.class).getDetectStatus(mUserId).compose(Api.applySchedulers())
.subscribe(mPresenter.baseObserver(integer -> {
UserInfo user = UserManager.getInstance().getUser();
user.setDetectStatus(integer);
UserManager.getInstance().saveUser(user);
mPresenter.setmDetectStatus(integer);
updateCertification();
}));
}
private void toEditBank() {
initUser();
showInfoDialog();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment