1. 12小时发文数量统计

    • 使用以下代码:
      <?= $empire->gettotal("select count(*) as total from cn_ecms_news where newstime > UNIX_TIMESTAMP() - 24 * 3600") ?>
  2. 6小时发文数量统计

    • 使用以下代码:
      <?= $empire->gettotal("select count(*) as total from cn_ecms_news where newstime > UNIX_TIMESTAMP() - 6 * 3600") ?>