|
@@ -514,7 +514,7 @@ class Talent extends EnterpriseController {
|
|
|
*/
|
|
|
private function save($info, \think\Request $request, $checkState) {
|
|
|
try {
|
|
|
- $batch = BatchApi::checkBatchValid(["type" => ProjectState::TALENT, "year" => $info["apply_year"]], $this->user["type"]);
|
|
|
+ $batch = BatchApi::checkBatchValid(["type" => ProjectState::TALENT, "year" => $info["apply_year"], "first_submit_time" => $info["first_submit_time"]], $this->user["type"]);
|
|
|
if ($batch["code"] != 200) {
|
|
|
throw new ValidateException($batch["msg"]);
|
|
|
}
|
|
@@ -618,7 +618,7 @@ class Talent extends EnterpriseController {
|
|
|
*/
|
|
|
private function mixSave($info, \think\Request $request, $checkState) {
|
|
|
try {
|
|
|
- $batch = BatchApi::checkBatchValid(["type" => ProjectState::TALENT, "year" => $info["apply_year"]], $this->user["type"]);
|
|
|
+ $batch = BatchApi::checkBatchValid(["type" => ProjectState::TALENT, "year" => $info["apply_year"], "first_submit_time" => $info["first_submit_time"]], $this->user["type"]);
|
|
|
if ($batch["code"] != 200) {
|
|
|
throw new ValidateException($batch["msg"]);
|
|
|
}
|
|
@@ -879,7 +879,7 @@ class Talent extends EnterpriseController {
|
|
|
|
|
|
private function icSave($info, \think\Request $request, $checkState) {
|
|
|
try {
|
|
|
- $batch = BatchApi::checkBatchValid(["type" => ProjectState::TALENT, "year" => $info["apply_year"]], $this->user["type"]);
|
|
|
+ $batch = BatchApi::checkBatchValid(["type" => ProjectState::TALENT, "year" => $info["apply_year"], "first_submit_time" => $info["first_submit_time"]], $this->user["type"]);
|
|
|
if ($batch["code"] != 200) {
|
|
|
throw new ValidateException($batch["msg"]);
|
|
|
}
|