sugangqiang 1 year ago
parent
commit
59f9ffae87
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/enterprise/controller/Integral.php

+ 2 - 2
app/enterprise/controller/Integral.php

@@ -136,10 +136,10 @@ class Integral extends EnterpriseController {
             }
 
             $whrCommonFt = [];
-            $whrCommonFt[] = ["project", "=", $project];
+            $whrCommonFt[] = ["project", "=", ProjectState::INTEGRAL];
             $whrCommonFt[] = ["active", "=", 1];
             $whrCommonFt[] = ["delete", "=", 0];
-            $whrCommonFt[] = ["type", "=", ProjectState::INTEGRAL];
+            $whrCommonFt[] = ["type", "=", $this->user["type"]];
             $whrCommonFt[] = ["isConditionFile", "=", 1];
             $common_fts = Db::table("new_common_filetype")->where($whrCommonFt)->select()->toArray();
             $common_ft_ids = array_column($common_fts, "id");