Commit 3a9ed45b by sikang

update api

parent 46b9a51e
......@@ -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;
while (true) {
boolean isEffective = true;
......@@ -213,7 +213,9 @@ public class UploadPresenter extends BasePresenter<UploadApi> {
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