瀏覽代碼

去掉子女教育的类型区分

sugangqiang 11 月之前
父節點
當前提交
6ef29eba43
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      app/admin/controller/EducationSchool.php
  2. 1 1
      app/common/api/EducationApi.php

+ 2 - 2
app/admin/controller/EducationSchool.php

@@ -191,7 +191,7 @@ class EducationSchool extends AdminController {
 
         $request = $this->request;
         $user = $this->user;
-        if (!in_array($user["type"], [1, 2])) {
+        if (!in_array($user["type"], [1, 2, 5, 6])) {
             $response->msg = "当前账号类型没有操作权限";
             return \StrUtil::back($response, "TalentInfo.callBack");
         }
@@ -202,7 +202,7 @@ class EducationSchool extends AdminController {
         $keys = array_filter(explode(",", $values)); //标题对应的字段
 
         $where = [];
-        $where[] = ["type", "=", $user["type"]];
+        //$where[] = ["type", "=", $user["type"]];
 
         if ($_where = EducationApi::getWhereByParams($request->param())) {
             $where = array_merge($where, $_where);

+ 1 - 1
app/common/api/EducationApi.php

@@ -22,7 +22,7 @@ class EducationApi {
         if ($user["usertype"] == 3) {
             $where[] = ["personId", "=", $user["uid"]];
         } else if ($user["usertype"] == 1) {
-            $where[] = ["type", "=", $user["type"]];
+            //$where[] = ["type", "=", $user["type"]];
         } else {
             return [];
         }