From 18fe555b1caccb76cf802d8b8a1593c28d6d0efa Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Mon, 19 Sep 2022 17:11:59 +0800 Subject: [PATCH] fix bug --- app/controller/Share.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controller/Share.php b/app/controller/Share.php index d996efb..6d45643 100644 --- a/app/controller/Share.php +++ b/app/controller/Share.php @@ -45,6 +45,7 @@ class Share } $users = []; $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(); if(!empty($list)){ $users = getAllUsersMessage($list,"user_id","id,nickname,avatar");