From 9e7ed021b11c0df0fe976ba48bca890c0786e686 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Mon, 19 Sep 2022 16:37:03 +0800 Subject: [PATCH] fix bug --- app/controller/Share.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controller/Share.php b/app/controller/Share.php index 9a7b485..d996efb 100644 --- a/app/controller/Share.php +++ b/app/controller/Share.php @@ -46,9 +46,8 @@ class Share $users = []; $result['lastIndex'] = 0; $list = Db::name("app_user_relation")->where("parent_id",$shiYou_id)->where($where)->select()->toArray(); - if(empty($list)){ + if(!empty($list)){ $users = getAllUsersMessage($list,"user_id","id,nickname,avatar"); - print_r($users); } foreach ($list as $vo) { $result['lastIndex'] = $vo['id'];