From ff0c4b864e771724c09b2060e2194cc4f2de1d97 Mon Sep 17 00:00:00 2001
From: 王智 <wz@bronet.cn>
Date: Thu, 17 Dec 2020 14:58:43 +0800
Subject: [PATCH] xiugao

---
 application/api/controller/User.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/api/controller/User.php b/application/api/controller/User.php
index 1794de8..3051f1e 100644
--- a/application/api/controller/User.php
+++ b/application/api/controller/User.php
@@ -1025,7 +1025,7 @@ class User extends Api
             if ($params['status'] == 1) {
                 //未测试
                 foreach ($SonUserArray as $k => $v) {
-                    $Weiceshi = Db::name('sleep')->where('user_id', $v['user_id'])->where('type', 1)->find();
+                    $Weiceshi = Db::name('sleep')->where('user_id', $v['user_id'])->where('type', 'NEQ', 1)->find();
                     if (!empty($Weiceshi)) {
                         $UserArray[] = $v['user_id'];
                     }
--
libgit2 0.24.0