<?php
$sql = urlencode('SELECT COUNT(*) as ct,uid FROM `'.\Phpcmf\Service::M()->dbprefix(SITE_ID.'_wenda_comment').'` where uid>10 and DATE_SUB(CURDATE(), INTERVAL 90 DAY) <= date(from_unixtime(inputtime)) GROUP by uid ORDER BY `ct` DESC limit 20');
?>
把錯誤日志內容發來看看,方法是:http://help.xunruicms.com/658.html
回復@官方插件技術-張均碩
ERROR - 2021-07-16 11:22:44 --> Table 'thinkadmin.dr_1_wenda_comment' doesn't exist
CRITICAL - 2021-07-16 11:22:44 --> Table 'thinkadmin.dr_1_wenda_comment' doesn't exist
好像是表前綴有問題,我數據庫已經改了表前綴,但是這個插件的表前綴是默認的dr
/pc/default/home/wenda/sidebar.html
改成