sugangqiang 1 년 전
부모
커밋
59f9ffae87
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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");