|
@@ -885,9 +885,9 @@ class IndexController extends WebBaseController
|
|
return response()->json(['status' => 0, 'msg' => '抱歉,该项目已过审核时间,无法继续报名!']);
|
|
return response()->json(['status' => 0, 'msg' => '抱歉,该项目已过审核时间,无法继续报名!']);
|
|
}
|
|
}
|
|
//如果有报名记录,先查询首次报名是什么时候
|
|
//如果有报名记录,先查询首次报名是什么时候
|
|
- $first_post = RecruitAppointLog::where('type', 3)->where('uid', $uid)->orderBy('created_at', 'asc')->first();
|
|
|
|
|
|
+ $first_post = RecruitAppointLog::where('appoint_id',$appoint_info->id)->where('type', 3)->where('uid', $uid)->orderBy('created_at', 'asc')->first();
|
|
if (!$first_post) {//没有记录代表只是暂存
|
|
if (!$first_post) {//没有记录代表只是暂存
|
|
- return response()->json(['status' => 0, 'msg' => '抱歉,该项目已过报名时间!']);
|
|
|
|
|
|
+ return response()->json(['status' => 0, 'msg' => '抱歉,该项目已过报名时间1!']);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
@@ -912,6 +912,7 @@ class IndexController extends WebBaseController
|
|
return response()->json(['status' => 0, 'msg' => '抱歉,该项目已过报名时间!']);
|
|
return response()->json(['status' => 0, 'msg' => '抱歉,该项目已过报名时间!']);
|
|
}
|
|
}
|
|
$first_post = RecruitAppointLog::where('appoint_id',$id)->where('type', 3)->where('uid', $uid)->orderBy('created_at', 'asc')->first();
|
|
$first_post = RecruitAppointLog::where('appoint_id',$id)->where('type', 3)->where('uid', $uid)->orderBy('created_at', 'asc')->first();
|
|
|
|
+
|
|
if (!$first_post) {//没有记录代表只是暂存
|
|
if (!$first_post) {//没有记录代表只是暂存
|
|
return response()->json(['status' => 0, 'msg' => '抱歉,该项目已过报名时间!']);
|
|
return response()->json(['status' => 0, 'msg' => '抱歉,该项目已过报名时间!']);
|
|
}
|
|
}
|
|
@@ -1303,7 +1304,7 @@ class IndexController extends WebBaseController
|
|
DB::commit();
|
|
DB::commit();
|
|
if ($operation == 2) {
|
|
if ($operation == 2) {
|
|
$log = [
|
|
$log = [
|
|
- 'type' => 3,
|
|
|
|
|
|
+ 'type' => 4,
|
|
'appoint_id' => $appoint_info->id,
|
|
'appoint_id' => $appoint_info->id,
|
|
'uid' => $uid,
|
|
'uid' => $uid,
|
|
'log' => '用户提交报名',
|
|
'log' => '用户提交报名',
|