Ver Fonte

取消除人社外的企业注册复审和企业变更信息复审的json配置方式

sugangqiang há 1 ano atrás
pai
commit
2f847bd5e2

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

@@ -271,7 +271,7 @@ class Enterprise extends AdminController {
         }
 
         $oriCheckState = $ep["checkState"];
-        if ($oriCheckState == 6 && !EnterpriseApi::chkUserInSuperusers()) {
+        if ($oriCheckState == 6 && !EnterpriseApi::chkUserInSuperusers() && !in_array($this->user["type"], [CommonConst::ENTERPRISE_JC, CommonConst::ENTERPRISE_WJ, CommonConst::ENTERPRISE_GJ])) {
             return json(["msg" => "已经流转到复审,不在审核范围内"]);
         }
 
@@ -741,7 +741,7 @@ class Enterprise extends AdminController {
             if (!in_array($ep["checkState"], [2, 5])) {
                 throw new \think\Exception("不是驳回状态,不能修改驳回字段!");
             }
-            if ($ep["checkState"] == 2 && !EnterpriseApi::chkUserInSuperusers()) {
+            if ($ep["checkState"] == 2 && !EnterpriseApi::chkUserInSuperusers() && !in_array($this->user["type"], [CommonConst::ENTERPRISE_JC, CommonConst::ENTERPRISE_WJ, CommonConst::ENTERPRISE_GJ])) {
                 throw new \think\Exception("已经流转到审核,不在审核范围内");
             }
             $fields = array_filter(explode(",", $params["fields"]));

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

@@ -447,7 +447,7 @@ class EnterpriseChangeRecord extends AdminController {
         }
 
         $oriCheckState = $ecr["checkState"];
-        if ($oriCheckState == 7 && !EnterpriseApi::chkUserInSuperusers()) {
+        if ($oriCheckState == 7 && !EnterpriseApi::chkUserInSuperusers() && !in_array($this->user["type"], [CommonConst::ENTERPRISE_JC, CommonConst::ENTERPRISE_WJ, CommonConst::ENTERPRISE_GJ])) {
             return json(["msg" => "已经流转到审核,不在审核范围内"]);
         }
 
@@ -764,7 +764,7 @@ class EnterpriseChangeRecord extends AdminController {
             if (!in_array($ecr["checkState"], [3, 6])) {
                 throw new \think\Exception("不是驳回状态,不能修改驳回字段!");
             }
-            if ($ecr["checkState"] == 3 && !EnterpriseApi::chkUserInSuperusers()) {
+            if ($ecr["checkState"] == 3 && !EnterpriseApi::chkUserInSuperusers() && !in_array($this->user["type"], [CommonConst::ENTERPRISE_JC, CommonConst::ENTERPRISE_WJ, CommonConst::ENTERPRISE_GJ])) {
                 throw new \think\Exception("已经流转到审核,不在审核范围内");
             }
             $fields = array_filter(explode(",", $params["fields"]));