<?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/10/23 * Time: 9:53 */ namespace app\home\model; use think\Model; class Slide extends Model { public function selectData($where){ $where['status'] = ['eq',1]; $data = $this->where($where)->order('createtime desc')->select(); return $data; } }