diff --git a/webapp/controller/AnncController.class.php b/webapp/controller/AnncController.class.php index 870d47dd..486513ad 100644 --- a/webapp/controller/AnncController.class.php +++ b/webapp/controller/AnncController.class.php @@ -5,18 +5,15 @@ class AnncController extends BaseController { public function getAnnc() { -// myself()->_rspData(require('../config/annc.php')); $seconds = myself()->_getNowTime() - myself()->_getNowDaySeconds(); $data = array(); $row = myself()->_getConfDbMysql()->execQueryOne( - 'SELECT * FROM t_game_annc WHERE :begin_date >= begin_date AND :end_date <= end_date AND is_open = 1 AND begin_time >= :seconds AND end_time <= :seconds', + 'SELECT * FROM t_game_annc WHERE :nowtime >= begin_date AND :nowtime <= end_date AND is_open = 1 AND :seconds >= begin_time AND :seconds <= end_time', array( - ':begin_date' => myself()->_getNowTime(), - ':end_date' => myself()->_getNowTime(), + ':nowtime' => myself()->_getNowTime(), ':seconds' => $seconds, ) ); - error_log($seconds); if ($row){ $data = array( 'id' => $row['uniid'],