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);
$userList = array();
{
SqlHelper::ormSelect(
myself()->_getSelfMysql(),
't_user',
$rows = myself()->_getSelfMysql()->execQuery(
'SELECT * FROM t_user ' .
"LIMIT 50",
array(
),
function ($row) use(&$userList) {
array_push($userList, User::info($row));
}
)
);
foreach ($rows as $row) {
array_push($userList, User::info($row));
}
}
$rankingList = array();
$ranked = 1;