Commit 8211051971b262bccc2ebb90ca9c423e26cb77c7
1 parent
305c41dc
Exists in
yxb_dev
and in
1 other branch
no message
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/src/main/java/com/shunzhi/parent/api/LoginRegisterApi.java
@@ -48,5 +48,5 @@ public interface LoginRegisterApi { | @@ -48,5 +48,5 @@ public interface LoginRegisterApi { | ||
48 | Observable<UserInfo> getUserInfo(@Field("mobile") String mobile, @Field("school_id") int school_id, @Field("captcha") String captcha); | 48 | Observable<UserInfo> getUserInfo(@Field("mobile") String mobile, @Field("school_id") int school_id, @Field("captcha") String captcha); |
49 | 49 | ||
50 | @GET("api/ParentHelper/ParentJudge") | 50 | @GET("api/ParentHelper/ParentJudge") |
51 | - Observable<JsonObject> getParentJudge(String mobile); | 51 | + Observable<JsonObject> getParentJudge(@Query("mobile") String mobile); |
52 | } | 52 | } |
app/src/main/java/com/shunzhi/parent/presenter/loginandregister/LoginAndRegisterPresenter.java
@@ -246,7 +246,7 @@ public class LoginAndRegisterPresenter extends LoginAndRegisterContract.LoginPre | @@ -246,7 +246,7 @@ public class LoginAndRegisterPresenter extends LoginAndRegisterContract.LoginPre | ||
246 | if (jsonObject.get("data").getAsBoolean()) { | 246 | if (jsonObject.get("data").getAsBoolean()) { |
247 | loginResult(mobile, pwd); | 247 | loginResult(mobile, pwd); |
248 | } else { | 248 | } else { |
249 | - ToastUtils.showToast("账号不存在,请先注册账号"); | 249 | + mIView.getUserInfo(-1, "账号不存在,请先注册账号"); |
250 | } | 250 | } |
251 | } | 251 | } |
252 | }, new Consumer<Throwable>() { | 252 | }, new Consumer<Throwable>() { |