Commit 3a9ed45b by sikang

update api

parent 46b9a51e
...@@ -198,7 +198,7 @@ public class UploadPresenter extends BasePresenter<UploadApi> { ...@@ -198,7 +198,7 @@ public class UploadPresenter extends BasePresenter<UploadApi> {
/** /**
* 上传其他证件照 * 上传其他证件照
*/ */
public void uploadOtherPhoto(String action, File file, List<PhotoListBean.Photo> photoList) { public void uploadOtherPhoto(String action, Bitmap bitmap, List<PhotoListBean.Photo> photoList) {
int index = 0; int index = 0;
while (true) { while (true) {
boolean isEffective = true; boolean isEffective = true;
...@@ -213,7 +213,9 @@ public class UploadPresenter extends BasePresenter<UploadApi> { ...@@ -213,7 +213,9 @@ public class UploadPresenter extends BasePresenter<UploadApi> {
index++; index++;
} }
} }
handleRequest(action, apiService.uploadOtherPhoto(MultipartBodyMaker.makeSimplePart("file", file), "EXTRA", index, "ADD")); // handleRequest(action, apiService.uploadOtherPhoto(MultipartBodyMaker.makeSimplePart("file", file), "EXTRA", index, "ADD"));
handleRequest(action, apiService.uploadOtherPhoto(MultipartBodyMaker.makeSimplePart("file", "new_work_image",
bitmap,Bitmap.CompressFormat.JPEG), "EXTRA", index, "ADD"));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment