Commit e979daf9 by sikang

修复证件照上传BUG

parent 7b806849
......@@ -36,6 +36,10 @@ public class EmploymentServerBean implements Serializable {
return companyAddress;
}
public String getRegion() {
return getCompanyProvince() + " " + getCompanyCity() + " " + getCompanyDistrict() + " " + getCompanyArea();
}
public void setCompanyAddress(String companyAddress) {
this.companyAddress = companyAddress;
}
......
......@@ -363,15 +363,18 @@ public class UserPresenter extends BasePresenter<UserApi> {
employmentBean.getSalary(),
LoginManager.get().getToken());
if (workCardImage != null && !workCardImage.exists()) {
Observable<ResponseBody> upload = getService(UploadApi.class).uploadPhoto(MultipartBodyMaker.makeSimplePart("file", workCardImage), UploadApi.UploadType.EMPLOYMENT_PHOTO.name(), LoginManager.get().getToken());
handleRequest(action, Observable.zip(info, upload,
new BiFunction<ResponseBody, ResponseBody, Boolean>() {
handleRequest(action, Observable.zip(info, upload, new BiFunction<ResponseBody, ResponseBody, Boolean>() {
@Override
public Boolean apply(ResponseBody responseBody, ResponseBody responseBody2) throws Exception {
return true;
}
}));
} else {
handleRequest(action, info);
}
}
......
......@@ -981,7 +981,7 @@
<string name="history_conversation">历史会话</string>
<string name="bank_repayment_statement">
付款成功后,请等待1-10分钟,Do-Uang会给您贷款和还款的通知。如果您发现任何问题,请致电WA +86 081383163427与我们联系
付款成功后,请等待1-10分钟,multiguna会给您贷款和还款的通知。如果您发现任何问题,请致电WA +86 081383163427与我们联系
</string>
<string name="text_collect_tip">
......
......@@ -1011,7 +1011,7 @@
<string name="history_conversation">Dialog historis</string>
<string name="bank_repayment_statement">
After the payment is successful, please wait 1-10 minutes, Do-Uang will give you a notification of loan repayment.If you find any problems please contact us at WA +86 081383163427
After the payment is successful, please wait 1-10 minutes, multiguna will give you a notification of loan repayment.If you find any problems please contact us at WA +86 081383163427
</string>
<string name="text_collect_tip">
......
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