瀏覽代碼

子女就学申报端基本完成

sugangqiang 1 年之前
父節點
當前提交
92bb9dba1d
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 8 0
      app/common/controller/Api.php
  2. 1 0
      app/person/controller/Education.php

+ 8 - 0
app/common/controller/Api.php

@@ -701,6 +701,14 @@ class Api extends BaseController {
                         return true;
                 }
                 break;
+            case ProjectState::EDUCATION:
+                if ($this->user["usertype"] == 3) {
+                    $user_id = $this->user["uid"];
+                    $talent_info = \app\common\model\EducationSchool::findOrEmpty($mainId);
+                    if ($user_id == $talent_info["personId"])
+                        return true;
+                }
+                break;
             case ProjectState::LIVINGALLOWANCE:
                 if ($this->user["usertype"] == 2) {
                     $user_id = $this->user["uid"];

+ 1 - 0
app/person/controller/Education.php

@@ -12,6 +12,7 @@ use think\facade\Db;
 use app\person\validate\EducationSchoolValidator;
 use app\common\model\TalentLog;
 use think\facade\Log;
+use think\exception\ValidateException;
 
 /**
  * Description of Education