用think-orm返回条数是对的,但是数据为空

浏览:227 发布日期:2019/04/02 分类:求助交流 关键字: 模型
// 测试
        $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) ""
  }
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>