Przeglądaj źródła

修改实名认证接口

Pq 2 lat temu
rodzic
commit
3099ea668c

+ 1 - 1
student/src/main/java/com/cooleshow/student/api/APIService.java

@@ -156,7 +156,7 @@ public interface APIService {
      * @param body
      * @return
      */
-    @POST(AUTH_GROUP + "user/realNameAuth")
+    @POST(STUDENT_GROUP + "student/realNameAuth")
     Observable<BaseResponse<Object>> realNameAuth(@Body RequestBody body);
 
     /**

+ 0 - 16
student/src/main/java/com/cooleshow/student/presenter/mine/PersonalCertificationPresenter.java

@@ -26,22 +26,6 @@ public class PersonalCertificationPresenter extends BasePresenter<PersonalCertif
                     getView().realNameAuthSuccess(data);
                 }
             }
-
-            @Override
-            public void onComplete() {
-                super.onComplete();
-                getView().hideLoading();
-            }
-
-            @Override
-            public void onError(Throwable e) {
-                super.onError(e);
-                if (e instanceof ApiException) {
-                    ErrorParse.getInstance().parseError(e);
-                    ApiException apiException = (ApiException) e;
-                    ToastUtil.getInstance().showShort(apiException.getErrmsg());
-                }
-            }
         });
     }
 

+ 1 - 0
student/src/main/java/com/cooleshow/student/ui/mine/PersonalCertificationActivity.java

@@ -62,6 +62,7 @@ public class PersonalCertificationActivity extends BaseMVPActivity<ActivityPerso
                     jsonObjectC.putOpt("realName", name);
                     jsonObjectC.putOpt("idCardNo", certificateNum);
                     jsonObjectC.putOpt("save", true);
+                    jsonObjectC.putOpt("contract", true);
                 } catch (JSONException e) {
                     e.printStackTrace();
                 }

+ 1 - 1
teacher/src/main/java/com/cooleshow/teacher/api/APIService.java

@@ -441,7 +441,7 @@ public interface APIService {
      * @param body
      * @return
      */
-    @POST(AUTH_GROUP + "user/realNameAuth")
+    @POST(TEACHER_GROUP + "teacher/realNameAuth")
     Observable<BaseResponse<Object>> realNameAuth(@Body RequestBody body);
 
     /**

+ 0 - 16
teacher/src/main/java/com/cooleshow/teacher/presenter/mine/PersonalCertificationPresenter.java

@@ -26,22 +26,6 @@ public class PersonalCertificationPresenter extends BasePresenter<PersonalCertif
                     getView().realNameAuthSuccess(data);
                 }
             }
-
-            @Override
-            public void onComplete() {
-                super.onComplete();
-                getView().hideLoading();
-            }
-
-            @Override
-            public void onError(Throwable e) {
-                super.onError(e);
-                if (e instanceof ApiException) {
-                    ErrorParse.getInstance().parseError(e);
-                    ApiException apiException = (ApiException) e;
-                    ToastUtil.getInstance().showShort(apiException.getErrmsg());
-                }
-            }
         });
     }
 

+ 1 - 0
teacher/src/main/java/com/cooleshow/teacher/ui/mine/PersonalCertificationActivity.java

@@ -62,6 +62,7 @@ public class PersonalCertificationActivity extends BaseMVPActivity<ActivityPerso
                     jsonObjectC.putOpt("realName", name);
                     jsonObjectC.putOpt("idCardNo", certificateNum);
                     jsonObjectC.putOpt("save", true);
+                    jsonObjectC.putOpt("contract", true);
                 } catch (JSONException e) {
                     e.printStackTrace();
                 }