SlideItemModel.php
523 字节
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/1/3
* Time: 19:00
*/
namespace api\index\model;
use think\Model;
class SlideItemModel extends Model
{
/**
* Image 自动转化
* @param $value
* @return array
*/
public function getImageAttr($value)
{
return cmf_get_image_url($value);
}
public function selectData($where){
$where['status'] = ['eq',1];
$data = $this->where($where)->select()->toArray();
return $data;
}
}