فهرست منبع

解决条件附件上传验证问题

sugangqiang 2 سال پیش
والد
کامیت
7ae8db0a84
2فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 1 0
      app/admin/controller/Talent.php
  2. 2 0
      app/enterprise/controller/Talent.php

+ 1 - 0
app/admin/controller/Talent.php

@@ -665,6 +665,7 @@ class Talent extends AdminController {
                     $where[] = ["step", "=", 2];
                     $where[] = ["active", "=", 1];
                     $where[] = ["type", "=", $enterprise["type"]];
+                    $where[] = ["isConditionFile", "<>", 1];
                     if ($condition && $condition["bindFileTypes"]) {
                         $whr[] = ["id", "in", explode(",", $condition["bindFileTypes"])];
                         $files = \think\facade\Db::table("new_common_filetype")->whereOr([$where, $whr])->select();

+ 2 - 0
app/enterprise/controller/Talent.php

@@ -126,6 +126,7 @@ class Talent extends EnterpriseController {
             $where[] = ["project", "=", 1];
             $where[] = ["type", "=", $this->user["type"]];
             $where[] = ["must", "=", 1];
+            $where[] = ["isConditionFile", "<>", 1];
             if ($whr) {
                 $filetypes = Db::table("new_common_filetype")->where([$where, $whr])->select()->toArray();
             } else {
@@ -197,6 +198,7 @@ class Talent extends EnterpriseController {
             $where[] = ["project", "=", 1];
             $where[] = ["type", "=", $this->user["type"]];
             $where[] = ["must", "=", 1];
+            $where[] = ["isConditionFile", "<>", 1];
             if ($whr) {
                 $filetypes = Db::table("new_common_filetype")->where([$where, $whr])->select()->toArray();
             } else {