|
@@ -142,7 +142,7 @@ class RecruitController extends MobileBaseController
|
|
|
|
|
|
public function quanjiSave(Request $request)
|
|
|
{
|
|
|
- $field = [
|
|
|
+ $empty_check = [
|
|
|
'realname' => '姓名',
|
|
|
'sex' => '性别',
|
|
|
'mobile' => '联系方式',
|
|
@@ -150,15 +150,16 @@ class RecruitController extends MobileBaseController
|
|
|
'native_place' => '籍贯',
|
|
|
'education' => '学历',
|
|
|
'school' => '毕业学校',
|
|
|
- 'dep' => '院系',
|
|
|
'pro_type' => '专业',
|
|
|
- 'pro_text' => '具体专业',
|
|
|
- 'title' => '在校任职',
|
|
|
- 'attachment' => '简历',
|
|
|
'remark' => '求职意向',
|
|
|
];
|
|
|
- $data = $request->only(array_keys($field));
|
|
|
- foreach ($field as $k => $v) {
|
|
|
+ $field = array_merge($empty_check, [
|
|
|
+ 'pro_text' => '具体专业',
|
|
|
+ 'title' => '在校任职',
|
|
|
+ 'attachment' => '简历',
|
|
|
+ ]);
|
|
|
+ $data = $request->only(array_keys($field));
|
|
|
+ foreach ($empty_check as $k => $v) {
|
|
|
if (empty($data[$k])) {
|
|
|
return response()->json(['status' => 0, 'msg' => $v . '不能为空']);
|
|
|
}
|