使用了先输出推荐在输出普通文章的报错了
调用文章时将推荐位放在前面显示(请慎用影响查询速度)
<?php $flag='';$table=MOD_DIR.'_flag';?>
{table table_site=$table}
<?php $t['id'] && $flag.=' WHEN '.$t['id'].' THEN '.($key+1);?>
{/table}
<?php
// 先查询推荐位的内容,然后加入到自定义排序中然他们靠前面
$flag && $order = urlencode(" CASE `id` ".$flag." ELSE 99 END,updatetime desc");
?>
例如:
{module catid=$catid order=$order page=1}https://www.xunruicms.com/doc/898.html
分站使用的,一推荐文章就报错

$flag && $order = urlencode(" CASE `id` ".$flag." ELSE 99 END,dr_2_news.updatetime desc");