|
@@ -612,6 +612,10 @@ class Talent extends EnterpriseController {
|
|
|
exit;
|
|
|
}
|
|
|
if ($checkState == TalentState::FST_SAVE) {
|
|
|
+ $ep = EnterpriseApi::getOne($this->user["uid"]);
|
|
|
+ if ($ep->isGeneral == 2 && !\app\common\api\Nhc::hasGeneralHospital($ep->medicalCommunityId)) {
|
|
|
+ return $this->wjSave($info, $this->request, TalentState::SCND_SUBMIT);
|
|
|
+ }
|
|
|
return $this->wjSave($info, $this->request, TalentState::FST_SUBMIT);
|
|
|
} else {
|
|
|
return $this->wjSave($info, $this->request, TalentState::SCND_SUBMIT);
|
|
@@ -1231,7 +1235,7 @@ class Talent extends EnterpriseController {
|
|
|
throw new ValidateException($batch["msg"]);
|
|
|
}
|
|
|
$param = $request->param();
|
|
|
- $i = validate(TalentInfo::class)->check($param);
|
|
|
+ validate(TalentInfo::class)->check($param);
|
|
|
$id = $param["id"];
|
|
|
if ($id) {
|
|
|
if (!$info || $info["id"] != $id || $info["enterprise_id"] != $this->user["uid"]) {
|