| | |
| | | public void onCallBack(LoginApiResult result) { |
| | | if (result.getCode() == LoginApiResult.CODE_OK) { |
| | | SingleToast.showToast(RegisterActivity.this, "登录成功"); |
| | | finish(); |
| | | } else { |
| | | SingleToast.showToast(RegisterActivity.this, result.getMsg()); |
| | | } |
| | |
| | | timer.schedule(new MyTask(), 1000, 1000); |
| | | SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE); |
| | | String uid = sp.getString("uid", ""); |
| | | findViewById(R.id.tv_notify).setVisibility(View.VISIBLE); |
| | | loginListener.sendEmailCode(RegisterActivity.this, email, new LoginApiCallBack() { |
| | | @Override |
| | | public void onCallBack(LoginApiResult result) { |