//搜索foreach($threadlist as $thread) {
//在其上面添加
foreach($threadlist as $v){
$tids[]=$v['tid'];
}
$strtids=join(',',$tids);
$msginfos=DB::fetch_all("SELECT tid,message FROM %t WHERE tid IN($strtids)",array('forum_post'));
if(!function_exists('messagecutstr')){
require_once libfile('function/post');
}
foreach($msginfos as $v){
$cutmsginfos[$v['tid']]=messagecutstr($v['message'],200);
}
//在其下面添加
$thread['cutmsg']=$cutmsginfos[$thread['tid']];