// tidarr 查询主题数据 不给mysql增加压力使用正序 倒叙可以使用array_reverse($threadlist, TRUE);
// 主题状态0:通过 1~9审核:1待审核 10~19:10退稿 11逻辑删除
function well_thread_find_asc($tidarr, $pagesize = 20)
{
// hook model__thread_find_start.php
$threadlist = well_thread__find(array('tid' => $tidarr), array('tid' => 1), 1, $pagesize);
if (!$threadlist) return NULL;
// hook model__thread_find_before.php
$i = 0;
foreach ($threadlist as $_tid => &$thread) {
++$i;
$thread['i'] = $i;
well_thread_format($thread);
// hook model__thread_find_format_after.php
}
// hook model__thread_find_end.php
return $threadlist;
}
大佬们,请教一下这个倒序怎么用。