WIN-2308041133\Administrator 1 天之前
父节点
当前提交
ade8f4b5df
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/controller/User.php

+ 1 - 1
app/api/controller/User.php

@@ -1721,7 +1721,7 @@ class User extends BaseController
         $where = [];
         $where = [];
         $where[] = ['uid', '=', $uid];
         $where[] = ['uid', '=', $uid];
         
         
-        if (!empty($post['type']) && in_array(strval($post['type']), ["1", "0"])) {
+        if (!empty($post['type']) && in_array(strval($post['type']), ["1", "-1"])) {
             $where[] = ['type', '=', $post['type']];
             $where[] = ['type', '=', $post['type']];
         }
         }