浏览代码

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

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 {