|
@@ -168,7 +168,7 @@ public class PersonalDataModel extends BaseModel implements PersonalDataContacts
|
|
|
* 更新简历基本信息
|
|
* 更新简历基本信息
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public void uploadBaseData(String realName, String phone, String wechatAccount, final MvpDataCallBack<Boolean> mvpDataCallBack) {
|
|
|
|
|
|
|
+ public void uploadBaseData(String realName, final MvpDataCallBack<Boolean> mvpDataCallBack) {
|
|
|
MultipartBody.Builder builder = new RetrofitHttpParams(mContext).getRequestMultipartBody();
|
|
MultipartBody.Builder builder = new RetrofitHttpParams(mContext).getRequestMultipartBody();
|
|
|
if (FileUtils.isFileExit(imagePath)) {
|
|
if (FileUtils.isFileExit(imagePath)) {
|
|
|
File file = new File(imagePath.replace("file://", ""));
|
|
File file = new File(imagePath.replace("file://", ""));
|
|
@@ -178,9 +178,7 @@ public class PersonalDataModel extends BaseModel implements PersonalDataContacts
|
|
|
}
|
|
}
|
|
|
builder.addFormDataPart("realName", realName);
|
|
builder.addFormDataPart("realName", realName);
|
|
|
builder.addFormDataPart("gender", gender);
|
|
builder.addFormDataPart("gender", gender);
|
|
|
- builder.addFormDataPart("phone", phone);
|
|
|
|
|
builder.addFormDataPart("birthYear", birthYear);
|
|
builder.addFormDataPart("birthYear", birthYear);
|
|
|
- builder.addFormDataPart("wechatNumber", wechatAccount);
|
|
|
|
|
builder.addFormDataPart("highestQualification", highestQualification);
|
|
builder.addFormDataPart("highestQualification", highestQualification);
|
|
|
new UserSubscribe(mContext).requestUploadBaseData(builder.build(), new ApiObserver<ApiResumeBean>(mContext, true, false) {
|
|
new UserSubscribe(mContext).requestUploadBaseData(builder.build(), new ApiObserver<ApiResumeBean>(mContext, true, false) {
|
|
|
@Override
|
|
@Override
|
|
@@ -227,7 +225,7 @@ public class PersonalDataModel extends BaseModel implements PersonalDataContacts
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public boolean isValid(String realName, String phone) {
|
|
|
|
|
|
|
+ public boolean isValid(String realName) {
|
|
|
if (TextUtils.isEmpty(realName)) {
|
|
if (TextUtils.isEmpty(realName)) {
|
|
|
ToastUtils.show(mContext, R.string.toast_input_name);
|
|
ToastUtils.show(mContext, R.string.toast_input_name);
|
|
|
return false;
|
|
return false;
|
|
@@ -236,14 +234,6 @@ public class PersonalDataModel extends BaseModel implements PersonalDataContacts
|
|
|
ToastUtils.show(mContext, R.string.toast_input_choose_gender);
|
|
ToastUtils.show(mContext, R.string.toast_input_choose_gender);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if (TextUtils.isEmpty(phone)) {
|
|
|
|
|
- ToastUtils.show(mContext, R.string.toast_input_phone);
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
- if (phone.length() != 11) {
|
|
|
|
|
- ToastUtils.show(mContext, R.string.toast_input_true_phone);
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
if (TextUtils.isEmpty(birthYear)) {
|
|
if (TextUtils.isEmpty(birthYear)) {
|
|
|
ToastUtils.show(mContext, R.string.toast_input_choose_year);
|
|
ToastUtils.show(mContext, R.string.toast_input_choose_year);
|
|
|
return false;
|
|
return false;
|