瀏覽代碼

Signed-off-by: sugangqiang <sugangqiang@foxmail.com>

sugangqiang 2 年之前
父節點
當前提交
7922637c06
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/common/controller/Api.php

+ 1 - 2
app/common/controller/Api.php

@@ -271,12 +271,11 @@ class Api extends BaseController {
         $params = $this->request->param();
         $type = $params["type"]; //人才类型不默认,需要传
         $declare_type = $params["project"] ?: 1; //默认人才认定
-        $step = $params["step"] ?: 2; //默认第二步,目前仅人才认定有两步
         $active = $params["active"] ?: 1; //默认查找启用的附件
         $where[] = ["type", "=", $type];
         $where[] = ["project", "=", $declare_type];
-        $where[] = ["step", "=", $step];
         $where[] = ["active", "=", $active];
+        $where[] = ["isConditionFile", "=", 1];
         $list = Db::table("new_common_filetype")->where($where)->order("sn " . $order)->select()->toArray();
         return json($list);
     }