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'];