// 测试
$info = $this->where('status', '=', '1')
->where('show_index', '=', '1')
->where('start_time', '<', time())
->where('end_time', '>', time())
->select();
echo $this->getLastSql();
halt($info);
SELECT * FROM `tk_activity` WHERE `status` = 1 AND `show_index` = 1 AND `start_time` < 1554169159 AND `end_time` > 1554169159
array(1) {
[0] => array(1) {
["success"] => string(0) ""
}
}
最佳答案
