diff --git a/app/api/controller/User.php b/app/api/controller/User.php index c2bf2bfa..e2733deb 100755 --- a/app/api/controller/User.php +++ b/app/api/controller/User.php @@ -240,7 +240,7 @@ class User extends Api a.first_leader = '.$user_id.' and a.disable = 0 and a.del = 0 and b.del=0 and b.audit_status = 2 group by a.first_leader"; $count = Db::query($sql); - $count = $count['cont']; + $count = $count[0]['cont']; }else{ $sql = "SELECT * FROM ls_user a,ls_local_store b WHERE a.id = b.user_id and a.first_leader = '.$user_id.' and a.disable = 0 and a.del = 0 and b.is_delete=0 @@ -250,7 +250,7 @@ class User extends Api a.first_leader = '.$user_id.' and a.disable = 0 and a.del = 0 and b.is_delete=0 and b.store_state = 1 group by a.first_leader"; $count = Db::query($sql); - $count = $count['cont']; + $count = $count[0]['cont']; } $data = [ 'list' => $lists,