欢迎来到 54818模板网!这是一个yzmcms的模板分享站。

get_comment_total

相关案例演示

/**(V5.5 新增)
 * 获取内容评论数
 *
 * @param  int $id
 * @param  int $catid
 * @param  int $modelid
 * @return string
 */
function get_comment_total($id, $catid = 0, $modelid = 1){
	if(!$catid) return 0;
	$commentid = $modelid.'_'.$catid.'_'.$id;
	$total = D('comment_data')->field('total')->where(array('commentid'=>$commentid))->one();
	return $total ? $total : 0;
}

    上一篇:get_thumb

    下一篇:get_content_keyword

    作者:54818模板网 关注:599 时间:2021-08-13 00:49:49
    相关网站教程