public void parseRegError(String error) { showRegProgressbar(false); if (error != null) { Toast.makeText(getContext(), error, Toast.LENGTH_SHORT).show(); presenter.getCodeImage(formInfo.getOnce()); } else { Toast.makeText(getContext(), "注册成功", Toast.LENGTH_SHORT).show(); LoginDialog loginDialog = new LoginDialog(getContext()); dismiss(); loginDialog.show(); } }
public void parseRegCode(RegFormModel formInfo) { this.formInfo = formInfo; presenter.getCodeImage(formInfo.getOnce()); }