语圈基本完成
2、个人主页完成
This commit is contained in:
@@ -39,7 +39,7 @@ public class LoginPresenter extends BasePresenter<LoginContacter.View> implement
|
||||
|
||||
@Override
|
||||
public void sendCode(String phoneNumber, int type) {
|
||||
api.sendCode(phoneNumber,"default", new BaseObserver<Object>() {
|
||||
api.sendCode(phoneNumber,type+"", new BaseObserver<Object>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
@@ -134,6 +134,21 @@ public class LoginPresenter extends BasePresenter<LoginContacter.View> implement
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void forgotPassword(String new_password, String mobile, String sms_code) {
|
||||
api.forgotPassword(new_password, mobile, sms_code, new BaseObserver<String>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(String s) {
|
||||
MvpRef.get().ysxlSuccess(s);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void detachView() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user