This commit is contained in:
aozhiwei 2022-05-14 10:02:12 +08:00
parent 8b1f3a02a0
commit 128bc16dca

View File

@ -16,15 +16,15 @@ class RankingController extends BaseAuthedController {
$type = getReqVal('type', 0); $type = getReqVal('type', 0);
$userList = array(); $userList = array();
{ {
SqlHelper::ormSelect( $rows = myself()->_getSelfMysql()->execQuery(
myself()->_getSelfMysql(), 'SELECT * FROM t_user ' .
't_user', "LIMIT 50",
array( array(
), )
function ($row) use(&$userList) {
array_push($userList, User::info($row));
}
); );
foreach ($rows as $row) {
array_push($userList, User::info($row));
}
} }
$rankingList = array(); $rankingList = array();
$ranked = 1; $ranked = 1;