//获取zt评论
$result = memory('get', 'zt_comment_'.$tid);
if(empty($result)){
$result = DB::fetch_all("SELECT pid, author, message FROM ".DB::table('forum_post')." WHERE tid=$tid and first=0 and status=0 ORDER BY dateline DESC LIMIT 30");
foreach($result as &$item){
$item['message'] = messagecutstr($item['message']);
}
$res = memory('set', 'zt_comment_'.$tid, $result, 600);
}
if($callback){
echo $callback."(".tb_json_encode($result).")";
}
exit;
网友评论