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