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");