Переглянути джерело

增加人才信息变更的附件删除

sandm 1 рік тому
батько
коміт
9bdcab0ab1
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      app/common/controller/Api.php

+ 2 - 1
app/common/controller/Api.php

@@ -639,6 +639,7 @@ class Api extends BaseController {
 
         if (!TalentApi::checkIsEditable($file["mainId"]))
             return json(["msg" => "当前状态不能删除或者文件已删除,请刷新重试。"]);
+
         if ($this->chkIsFileOwner($file["mainId"], $file["type"])) {
             if (!empty($file["url"])) {
                 $filepath = "storage/" . $file["url"];
@@ -887,7 +888,7 @@ class Api extends BaseController {
                 if ($this->user["usertype"] == 2) {
                     $user_id = $this->user["uid"];
                     $record = Db::table("un_talent_basic_change")->findOrEmpty($mainId);
-                    if ($user_id == $record["enterprise_id"])
+                    if ($user_id == $record["enterpriseId"])
                         return true;
                 }
                 break;