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

子女就学申报端基本完成

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