@@ -160,9 +160,9 @@ public class RequestServer implements IRequestServer {
160160
161161 @NonNull
162162 @Override
163- public BodyType getBodyType () {
163+ public RequestBodyType getBodyType () {
164164 // 参数以 Json 格式提交(默认是表单)
165- return BodyType . JSON ;
165+ return RequestBodyType . JSON ;
166166 }
167167}
168168```
@@ -325,9 +325,9 @@ public final class UpdateImageApi implements IRequestApi, IRequestType {
325325
326326 @NonNull
327327 @Override
328- public BodyType getBodyType () {
328+ public RequestBodyType getBodyType () {
329329 // 上传文件需要使用表单的形式提交
330- return BodyType . FORM ;
330+ return RequestBodyType . FORM ;
331331 }
332332
333333 /* * 本地图片 */
@@ -870,8 +870,8 @@ public class XxxServer implements IRequestServer {
870870
871871 @NonNull
872872 @Override
873- public BodyType getBodyType () {
874- return BodyType . FORM ;
873+ public RequestBodyType getBodyType () {
874+ return RequestBodyType . FORM ;
875875 }
876876}
877877```
@@ -889,8 +889,8 @@ public class XxxServer implements IRequestServer {
889889
890890 @NonNull
891891 @Override
892- public BodyType getBodyType () {
893- return BodyType . JSON ;
892+ public RequestBodyType getBodyType () {
893+ return RequestBodyType . JSON ;
894894 }
895895}
896896```
@@ -908,8 +908,8 @@ public final class XxxApi implements IRequestApi, IRequestType {
908908
909909 @NonNull
910910 @Override
911- public BodyType getBodyType () {
912- return BodyType . JSON ;
911+ public RequestBodyType getBodyType () {
912+ return RequestBodyType . JSON ;
913913 }
914914}
915915```
@@ -1474,7 +1474,7 @@ EasyHttp.post(this)
14741474EasyHttp . post(this )
14751475 .api(new XxxApi ())
14761476 // 表示回调是在子线程中进行
1477- .schedulers(ThreadSchedulers . IOThread )
1477+ .schedulers(ThreadSchedulers . IO )
14781478 .request(new HttpCallbackProxy<HttpData<Xxx > > (this ) {
14791479
14801480 @Override
0 commit comments