This commit is contained in:
knowpia
2022-09-19 17:11:59 +08:00
parent 9e7ed021b1
commit 18fe555b1c

View File

@@ -45,6 +45,7 @@ class Share
} }
$users = []; $users = [];
$result['lastIndex'] = 0; $result['lastIndex'] = 0;
$result['count'] = Db::name("app_user_relation")->where("parent_id",$shiYou_id)->count();
$list = Db::name("app_user_relation")->where("parent_id",$shiYou_id)->where($where)->select()->toArray(); $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"); $users = getAllUsersMessage($list,"user_id","id,nickname,avatar");