IndexController.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. <?php
  2. namespace App\Http\Controllers\mobile\Recruit;
  3. use App\Http\Controllers\Web\WebBaseController;
  4. use App\Models\RecruitAppointLog;
  5. use Illuminate\Http\Request;
  6. use App\Models\Recruit;
  7. use App\Services\Recruit\RecruitService;
  8. use App\Models\RecruitAppointBasic;
  9. use App\Models\RecruitPost;
  10. use App\Models\RecruitAppointInfo;
  11. use Illuminate\Support\Facades\Validator;
  12. use Illuminate\Support\Facades\DB;
  13. use App\Models\RecruitAppointExpandSpecial;
  14. use App\Models\RecruitAppointDetail;
  15. use App\Models\RecruitArticle;
  16. class IndexController extends WebBaseController
  17. {
  18. protected $recruitService;
  19. public function __construct(RecruitService $recruitService)
  20. {
  21. $this->recruitService = $recruitService;
  22. }
  23. /**
  24. * 招考列表页
  25. */
  26. public function index(Request $request)
  27. {
  28. $size = 10;
  29. $key = $request->input('key');
  30. $list = $this->recruitService->getRecruit($key, $size);
  31. if ($request->ajax()) {
  32. if ($list->lastPage() < $list->currentPage()) {
  33. return response()->json(['status' => 0]);
  34. }
  35. return response()->json(['status' => 1, 'data' => view('mobile.app.recruit.ajax_recruit_list', ['list' => $list])->render()]);
  36. }
  37. $mobile_dropload = false;
  38. if ($list->total() > $size) {
  39. $mobile_dropload = true;
  40. }
  41. $return_data = [
  42. 'list' => $list,
  43. 'key' => $key,
  44. 'current_url' => \Illuminate\Support\Facades\Request::getRequestUri(),
  45. 'wap_title' => '招考列表',
  46. 'mobile_dropload' => $mobile_dropload,
  47. 'current_text' => Recruit::$currentText,
  48. ];
  49. return view('mobile.app.recruit.index', $return_data);
  50. }
  51. /**
  52. * 招考详情页
  53. */
  54. public function show(Request $request)
  55. {
  56. $user = $this->getUser();
  57. if ($user) {
  58. $uid = $user->id;
  59. $utype = $user->utype;
  60. } else {
  61. $uid = 0;
  62. $utype = 0;
  63. }
  64. $id = $request->input('id', 0);
  65. if (empty($id)) {
  66. return $this->showMessage('抱歉,请输入指定的招考场次!', route('mobile.recruit.list'), true, '上一页', '3');
  67. }
  68. $recruit = Recruit::find($id);
  69. if (empty($recruit)) {
  70. return redirect(route('/mobile/recruit/list'));
  71. }
  72. $info = Recruit::parse_info($recruit);
  73. $list = RecruitArticle::where('recruit_id', $id)->orderBy('created_at', 'desc')->get();
  74. if (!empty($info)) {
  75. $view_data = [
  76. 'recruit' => $recruit,
  77. 'info' => $info,
  78. 'uid' => $uid,
  79. 'utype' => $utype,
  80. 'list' => $list,
  81. ];
  82. return view('mobile.app.recruit.show')->with($view_data);
  83. } else {
  84. return back();
  85. }
  86. }
  87. /**
  88. * 报名功能页
  89. * @param Request $request
  90. * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector|\Illuminate\View\View|mixed|\think\response\Redirect|\think\response\View|void
  91. */
  92. public function sign_up(Request $request)
  93. {
  94. $user = $this->getUser();
  95. if (!empty($user)) {
  96. $uid = $user->id;
  97. } else {
  98. return redirect(route('login'));
  99. }
  100. //招考id
  101. $id = $request->input('id', 0);
  102. if (!$id) {
  103. return $this->showMessage('请选择招考项目!', route('home'), true, '上一页', '3');
  104. }
  105. //招考信息
  106. $recruit = Recruit::find($id);
  107. if (!$recruit['status']) {
  108. return $this->showMessage('抱歉,该招考状态不正确,请联系客服!', route('recruit.show', ['id', $recruit['id']]), true, '上一页', '3');
  109. }
  110. if ($recruit['current'] != 1) {
  111. return $this->showMessage('抱歉,该招考报名通道已关闭,如有疑问,请联系客服!', route('recruit.show', ['id', $recruit['id']]), true, '上一页', '3');
  112. }
  113. $time = time();
  114. if ($time < strtotime($recruit['apply_start']) || strtotime($recruit['apply_end']) < $time) {
  115. return $this->showMessage('抱歉,该招考已过报名时间或尚未开始!', route('recruit.show', ['id', $recruit['id']]), true, '上一页', '3');
  116. }
  117. $view_data['module'] = $forms = explode(',', $recruit['forms']);
  118. //查询报名表是否已有记录
  119. $appoint_info = RecruitAppointInfo::where('uid', $uid)->where('recruit_id', $id)->first();
  120. if ($appoint_info) {
  121. //如果已有该场次的报名记录,读取录入的数据集合
  122. $user_info = $appoint_info;
  123. $user_info['sex'] = (string)$user_info['sex'];
  124. $user_info['edu_type'] = (string)$user_info['edu_type'];
  125. $user_info['family'] = json_decode($user_info['family']);
  126. if (in_array('expand_special', $forms)) {
  127. $special = RecruitAppointExpandSpecial::where('recruit_appoint_id', $user_info['id'])->first();
  128. if (json_decode($special['material'])) {
  129. $material = json_decode($special['material'], true);
  130. foreach ($material as $k => $v) {
  131. $material[$k]['url'] = $v['response']['path'];
  132. }
  133. } else {
  134. $material = [];
  135. }
  136. $user_info['special'] = [
  137. 'point_apply' => (string)$special['point_apply'],
  138. 'condition' => $special['condition'],
  139. 'material' => $material,
  140. ];
  141. }
  142. if (in_array('detail', $forms)) {
  143. $detail = RecruitAppointDetail::where('recruit_appoint_id', $user_info['id'])->first();
  144. if ($detail) {
  145. $user_info['detail'] = $detail->toArray();
  146. } else {
  147. $user_info['detail'] = [
  148. 'train' => '',
  149. 'rewards_and_punishments' => '',
  150. 'introduce' => '',
  151. ];
  152. }
  153. }
  154. //如果有身份证明模块
  155. if (in_array('identification', $forms)) {
  156. if (json_decode($user_info['identification'])) {
  157. $identification = json_decode($user_info['identification'], true);
  158. foreach ($identification as $k => $v) {
  159. $identification[$k]['url'] = $v['response']['path'];
  160. }
  161. } else {
  162. $identification = [];
  163. }
  164. $user_info['identification'] = $identification;
  165. }
  166. //如果有教育证明模块
  167. if (in_array('education_certification', $forms)) {
  168. if (json_decode($user_info['education_certification'])) {
  169. $education_certification = json_decode($user_info['education_certification'], true);
  170. foreach ($education_certification as $k => $v) {
  171. $education_certification[$k]['url'] = $v['response']['path'];
  172. }
  173. } else {
  174. $education_certification = [];
  175. }
  176. $user_info['education_certification'] = $education_certification;
  177. }
  178. //如果有其他证明模块
  179. if (in_array('other_certification', $forms)) {
  180. if (json_decode($user_info['other_certification'])) {
  181. $other_certification = json_decode($user_info['other_certification'], true);
  182. foreach ($other_certification as $k => $v) {
  183. $other_certification[$k]['url'] = $v['response']['path'];
  184. }
  185. } else {
  186. $other_certification = [];
  187. }
  188. $user_info['other_certification'] = $other_certification;
  189. }
  190. //获取最新的报名审核信息
  191. $logs = RecruitAppointLog::where('appoint_id', $user_info->id)->where('step', 1)->where('type', 2)->orderBy('created_at', 'desc')->first();
  192. if ($logs) {
  193. $user_info['audit_log'] = $logs->log;
  194. } else {
  195. $user_info['audit_log'] = '';
  196. }
  197. //获取提交报名的次数
  198. $number = RecruitAppointLog::where('appoint_id', $user_info->id)->where('step', 1)->where('type', 3)->count();
  199. $post_number = $number + 1;//todo
  200. } else {
  201. $post_number = 1;
  202. //如果没有,结合基础数据及模块表单信息,制作数据对象
  203. $user_info = RecruitAppointBasic::where('uid', $uid)->first();
  204. if (!$user_info) {
  205. //没有基础信息跳转完善route('person.recruitInfo')
  206. return $this->showMessage('请先完善招考基础信息!', route('person.recruitInfo', ['recruit_id', $id]), true, '上一页', '3');
  207. }
  208. $user_info['sex'] = (string)$user_info['sex'];
  209. $user_info['edu_type'] = (string)$user_info['edu_type'];
  210. $user_info['family'] = json_decode($user_info['family']);
  211. if (in_array('expand_special', $forms)) {
  212. $user_info['special'] = [
  213. 'point_apply' => '0',
  214. 'condition' => '',
  215. 'material' => [],
  216. ];
  217. }
  218. if (in_array('detail', $forms)) {
  219. $user_info['detail'] = [
  220. 'train' => '',
  221. 'rewards_and_punishments' => '',
  222. 'introduce' => '',
  223. ];
  224. }
  225. if (in_array('identification', $forms)) {
  226. $user_info['identification'] = [];
  227. }
  228. if (in_array('education_certification', $forms)) {
  229. $user_info['education_certification'] = [];
  230. }
  231. if (in_array('other_certification', $forms)) {
  232. $user_info['other_certification'] = [];
  233. }
  234. }
  235. $user_info['recruit_id'] = $id;
  236. $user_info['operation'] = 1;
  237. //招考岗位
  238. $where_post[] = ['recruit_id', '=', $id];
  239. $recruit_post = RecruitPost::where($where_post)->get();
  240. $post = [];
  241. $post_limit = [];
  242. foreach ($recruit_post as $value) {
  243. $item = [
  244. 'value' => $value['id'],
  245. 'label' => $value['code'] . " " . $value['name'],
  246. ];
  247. $post_limit[$value['id']] = json_decode($value['limit']);
  248. array_push($post, $item);
  249. }
  250. $view_data['appoint_info'] = $user_info;
  251. $view_data['post'] = json_encode($post);
  252. $view_data['post_number'] = $post_number;
  253. $view_data['post_times'] = $recruit['post_times'];
  254. $view_data['post_limit'] = json_encode($post_limit);
  255. return view('mobile.app.recruit.sign_up', $view_data);
  256. }
  257. /**
  258. * 提交报名的处理程序
  259. * @param Request $request
  260. * @return array|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector|\think\response\Redirect|void
  261. */
  262. public function saveSignUp(Request $request)
  263. {
  264. $user = $this->getUser();
  265. if (!empty($user)) {
  266. $uid = $user->id;
  267. } else {
  268. return redirect(route('login'));
  269. }
  270. $recruit_id = $request->input('recruit_id', 0);
  271. if (!$recruit_id) {
  272. return response()->json(['status' => 0, 'msg' => '请选择招考项目!']);
  273. }
  274. $recruit = Recruit::find($recruit_id);
  275. if (!$recruit['status']) {
  276. return response()->json(['status' => 0, 'msg' => '抱歉,该招考状态不正确,请联系客服!']);
  277. }
  278. if ($recruit['current'] != 1) {
  279. return response()->json(['status' => 0, 'msg' => '抱歉,该招考报名通道已关闭,如有疑问,请联系客服!']);
  280. }
  281. $time = time();
  282. if ($time < $recruit['apply_start'] || $recruit['apply_end'] > $time) {
  283. return response()->json(['status' => 0, 'msg' => '抱歉,该招考已过报名时间!']);
  284. }
  285. //基础信息的检查
  286. $rules = [
  287. 'realname' => 'required',
  288. 'sex' => 'required',
  289. 'birthday' => 'required',
  290. 'avatar' => 'required',
  291. 'nation' => 'required',
  292. 'native_place' => 'required',
  293. 'political_affiliation' => 'required',
  294. 'post_id' => 'required',
  295. 'house_register' => 'required',
  296. 'edu_type' => 'required',
  297. 'education' => 'required',
  298. 'school' => 'required',
  299. 'address' => 'required',
  300. 'mobile' => 'required',
  301. 'email' => 'required',
  302. 'card' => 'required',
  303. 'concat_name' => 'required',
  304. 'concat_mobile' => 'required',
  305. 'resume' => 'required',
  306. ];
  307. $messages = [
  308. 'realname.required' => '请填写姓名',
  309. 'sex.required' => '请填写性别',
  310. 'birthday.required' => '请填写出生日期',
  311. 'avatar.required' => '请上传彩色免冠照',
  312. 'nation.required' => '请填写民族',
  313. 'native_place.required' => '请填写籍贯',
  314. 'political_affiliation.required' => '请选择政治面貌',
  315. 'post_id.required' => '请选择报名岗位',
  316. 'house_register.required' => '请填写户籍所在地',
  317. 'edu_type.required' => '请选择教育类型',
  318. 'education.required' => '请输入学历',
  319. 'school.required' => '请输入毕业院校',
  320. 'address.required' => '请填写通信地址',
  321. 'mobile.required' => '请填写手机号码',
  322. 'email.required' => '请填写电子邮箱',
  323. 'card.required' => '请填写身份证号码',
  324. 'resume.required' => '请填写个人简历',
  325. 'concat_name.required' => '请填写联系人姓名',
  326. 'concat_mobile.required' => '请填写联系人手机号码',
  327. ];
  328. $create_data = $request->all();
  329. $validator = Validator::make($create_data, $rules, $messages);
  330. if ($validator->fails()) {
  331. $msg = $validator->errors()->all();
  332. return response()->json(['status' => 0, 'msg' => $msg[0]]);
  333. } else {
  334. $data = $request->only('realname', 'sex', 'birthday', 'avatar', 'nation', 'native_place', 'political_affiliation', 'titles', 'join_time', 'work', 'house_register', 'edu_type', 'education', 'school', 'degree', 'pro', 'address', 'card', 'mobile', 'email', 'concat_name', 'concat_mobile', 'resume', 'post_id');
  335. $post_info = RecruitPost::where('id', $data['post_id'])->where('recruit_id', $recruit_id)->first();
  336. if (!$post_info['status'] || $post_info['deleted_at'] != null) {
  337. return response()->json(['status' => 0, 'msg' => '该岗位已失效']);
  338. }
  339. //获取操作符,是暂存还是提交
  340. $operation = $request->input('operation');
  341. if ($operation == 1) {
  342. $data['audit'] = 0;//暂存
  343. } else {
  344. $data['audit'] = 1;//提交
  345. }
  346. if (!empty($post_info['limit']) && json_decode($post_info['limit'])) {
  347. //岗位限制条件的判断
  348. $post_limit = json_decode($post_info['limit'], true);
  349. foreach ($post_limit as $k => $v) {
  350. if ($k == 'birthday') {
  351. $value = str_replace('-', '', $data[$k]);
  352. } else {
  353. $value = $data[$k];
  354. }
  355. switch ($v['op']) {
  356. case '=':
  357. if ($value != $v['value']) {
  358. return response()->json(['status' => 0, 'msg' => $v['msg']]);
  359. }
  360. break;
  361. case '>':
  362. if ($value <= $v['value']) {
  363. return response()->json(['status' => 0, 'msg' => $v['msg']]);
  364. }
  365. break;
  366. case '>=':
  367. if ($value < $v['value']) {
  368. return response()->json(['status' => 0, 'msg' => $v['msg']]);
  369. }
  370. break;
  371. case '<':
  372. if ($value >= $v['value']) {
  373. return response()->json(['status' => 0, 'msg' => $v['msg']]);
  374. }
  375. break;
  376. case '<=':
  377. if ($value > $v['value']) {
  378. return response()->json(['status' => 0, 'msg' => $v['msg']]);
  379. }
  380. break;
  381. case '!=':
  382. if ($value == $v['value']) {
  383. return response()->json(['status' => 0, 'msg' => $v['msg']]);
  384. }
  385. break;
  386. case 'like':
  387. if (strpos($value, $v['value']) === false) {
  388. return response()->json(['status' => 0, 'msg' => $v['msg']]);
  389. }
  390. break;
  391. case 'in':
  392. if (strpos($v['value'], $value) === false) {
  393. return response()->json(['status' => 0, 'msg' => $v['msg']]);
  394. }
  395. break;
  396. }
  397. }
  398. }
  399. //前置审核 判断完成,先将数据入报名信息基础表
  400. //解析家庭成员数据
  401. $familys = $request->input('family');
  402. $family = [];
  403. foreach ($familys as $value) {
  404. $item = [
  405. 'relation' => $value['relation'],
  406. 'realname' => $value['realname'],
  407. 'birthday' => $value['birthday'],
  408. 'political_affiliation' => $value['political_affiliation'],
  409. 'work' => $value['work'],
  410. ];
  411. array_push($family, $item);
  412. }
  413. $data['family'] = json_encode($family);
  414. $appoint_info = RecruitAppointInfo::where('uid', $uid)->where('recruit_id', $recruit_id)->first();
  415. if ($appoint_info) {
  416. //如果已有报名记录,进入修改阶段的处理流程
  417. DB::beginTransaction();
  418. try {
  419. RecruitAppointInfo::where('uid', $uid)->where('recruit_id', $recruit_id)->update($data);
  420. //分模块解析数据
  421. $forms = explode(',', $recruit['forms']);
  422. //如果有加分模块
  423. if (in_array('expand_special', $forms)) {
  424. $special = $request->input('special');
  425. if ($special['point_apply']) {
  426. $special['material'] = json_encode($special['material']);
  427. }
  428. $hasRecord = RecruitAppointExpandSpecial::where('recruit_appoint_id', $appoint_info->id)->first();
  429. if ($hasRecord) {
  430. RecruitAppointExpandSpecial::where('recruit_appoint_id', $appoint_info->id)->update($special);
  431. } else {
  432. $special['recruit_appoint_id'] = $appoint_info->id;
  433. RecruitAppointExpandSpecial::create($special);
  434. }
  435. }
  436. //如果有详情模块
  437. if (in_array('detail', $forms)) {
  438. $detail = $request->input('detail');
  439. $hasRecord = RecruitAppointDetail::where('recruit_appoint_id', $appoint_info->id)->first();
  440. if ($hasRecord) {
  441. RecruitAppointDetail::where('recruit_appoint_id', $appoint_info->id)->update($detail);
  442. } else {
  443. $detail['recruit_appoint_id'] = $appoint_info->id;
  444. RecruitAppointDetail::create($detail);
  445. }
  446. }
  447. //如果有身份证明模块
  448. if (in_array('identification', $forms)) {
  449. $identification = $request->input('identification');
  450. $appoint_info->identification = json_encode($identification);
  451. $appoint_info->save();
  452. }
  453. //如果有教育证明模块
  454. if (in_array('education_certification', $forms)) {
  455. $education_certification = $request->input('education_certification');
  456. $appoint_info->education_certification = json_encode($education_certification);
  457. $appoint_info->save();
  458. }
  459. //如果有其他证明模块
  460. if (in_array('other_certification', $forms)) {
  461. $other_certification = $request->input('other_certification');
  462. if ($other_certification) {
  463. $appoint_info->other_certification = json_encode($other_certification);
  464. $appoint_info->save();
  465. }
  466. }
  467. DB::commit();
  468. $log = [
  469. 'type' => 3,
  470. 'appoint_id' => $appoint_info->id,
  471. 'uid' => $uid,
  472. 'log' => '用户提交报名',
  473. ];
  474. RecruitAppointLog::create($log);
  475. return ['status' => 1, 'msg' => '提交成功', 'data' => $appoint_info->id];
  476. } catch (\Exception $e) {
  477. }
  478. } else {
  479. //没有报名记录,进入增加阶段的处理流程
  480. DB::beginTransaction();
  481. try {
  482. $data['uid'] = $uid;
  483. $data['recruit_id'] = $recruit_id;
  484. $result = RecruitAppointInfo::create($data);
  485. //分模块解析数据
  486. $forms = explode(',', $recruit['forms']);
  487. //如果有加分模块
  488. if (in_array('expand_special', $forms)) {
  489. $special = $request->input('special');
  490. if ($special['point_apply']) {
  491. $special['material'] = json_encode($special['material']);
  492. }
  493. $special['recruit_appoint_id'] = $result->id;
  494. RecruitAppointExpandSpecial::create($special);
  495. }
  496. //如果有详情模块
  497. if (in_array('detail', $forms)) {
  498. $detail = $request->input('detail');
  499. $detail['recruit_appoint_id'] = $result->id;
  500. RecruitAppointDetail::create($detail);
  501. }
  502. //如果有身份证明模块
  503. if (in_array('identification', $forms)) {
  504. $identification = $request->input('identification');
  505. // $identifications = [];
  506. // foreach ($identification as $k => $v){
  507. // array_push($identifications,$v['response']['path']);
  508. // }
  509. $result->identification = json_encode($identification);
  510. $result->save();
  511. }
  512. //如果有教育证明模块
  513. if (in_array('education_certification', $forms)) {
  514. $education_certification = $request->input('education_certification');
  515. // $education_certifications = [];
  516. // foreach ($education_certification as $k => $v){
  517. // array_push($education_certifications,$v['response']['path']);
  518. // }
  519. $result->education_certification = json_encode($education_certification);
  520. $result->save();
  521. }
  522. //如果有其他证明模块
  523. if (in_array('other_certification', $forms)) {
  524. $other_certification = $request->input('other_certification');
  525. if ($other_certification) {
  526. // $other_certifications = [];
  527. // foreach ($other_certification as $k => $v){
  528. // array_push($other_certifications,$v['response']['path']);
  529. // }
  530. $result->other_certification = json_encode($other_certification);
  531. $result->save();
  532. }
  533. }
  534. DB::commit();
  535. $log = [
  536. 'type' => 3,
  537. 'appoint_id' => $result->id,
  538. 'uid' => $uid,
  539. 'log' => '用户首次提交报名',
  540. ];
  541. RecruitAppointLog::create($log);
  542. return ['status' => 1, 'msg' => '提交成功', 'data' => $result->id];
  543. } catch (\Exception $e) {
  544. DB::rollback();
  545. return ['status' => 0, 'msg' => $e->getMessage()];
  546. }
  547. }
  548. }
  549. }
  550. /**
  551. * 获得当前登录的用户
  552. * @return \Illuminate\Contracts\Auth\Authenticatable|null
  553. */
  554. public function getUser()
  555. {
  556. if (auth('web-member')->check()) {
  557. $user = auth('web-member')->user();
  558. } else {
  559. $user = null;
  560. }
  561. return $user;
  562. }
  563. public function checkUserBasicInfo(Request $request)
  564. {
  565. $user = $this->getUser();
  566. if (!empty($user)) {
  567. $uid = $user->id;
  568. } else {
  569. //$request->session()->put('url.intended', $request->server('HTTP_REFERER'));
  570. $arr = ['status' => 401, 'msg' => '请登录!','url' => $request->server('HTTP_REFERER')];
  571. return $arr;
  572. }
  573. $info = RecruitAppointBasic::where('uid', $uid)->first();
  574. if (empty($info) || empty($info['realname'])) {
  575. $arr = ['status' => 401, 'msg' => '请先完善招考基本信息', 'url' => route('mobile.person.recruitInfo')];
  576. return $arr;
  577. }
  578. return ['status' => 200, 'msg' => ''];
  579. }
  580. public function checkIndexUser(Request $request)
  581. {
  582. $id = $request->input('id', 0);
  583. return redirect(route('mobile.recruit.show',['id'=>$id]));
  584. }
  585. }