1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 public function getTopList ( ) { $pageNum = input ('get.pageNum' ); $pageSize = input ('get.pageSize' , 20 ); $sql = RecordModel ::where ('status' ,2 )->fetchSql ()->order ('score desc' )->limit (9999999999 )->select (); $rows = Db ::query ('select * from (' . $sql . ') t group by t.user_id' ); $time = []; $score = []; foreach ($rows as $key => $row ) { $time [$key ] = $row ['time' ]; $score [$key ] = $row ['score' ]; } array_multisort ($score , SORT_DESC, $time , SORT_ASC, $rows ); $total = count ($rows ); $rows = array_splice ($rows , ($pageNum - 1 ) * $pageSize , $pageSize ); foreach ($rows as $i => $item ) { $rows [$i ]['nickname' ] = RegisterModel ::where (['id' => $item ['user_id' ]])->value ('nickname' ); } success_msg ('OK' , [ 'total' => $total , 'more' => ($pageNum * $pageSize ) < $total , 'rows' => $rows ]); }
1 document .getElementById ('woc' ).innerHTML = ' xxx' ;
加粗 倾斜 加粗并且倾斜 删除线
h2 shghgh
h3三级标题
金海环境孤独感一个一个哥达鸭高压阀哥达鸭高压阀关于高压
百度一下
111