审查视图

app/index/model/InsuranceCompanyModel.php 528 字节
王晓刚 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/26
 * Time: 8:52
 */

namespace app\index\model;


use think\Model;

class InsuranceCompanyModel extends Model
{
    /**
     * thumbnail 自动转化
     * @param $value
     * @return string
     */
    public function getThumbnailAttr($value)
    {
        return cmf_get_image_url($value);
    }
    public function selectData(){
        $where['delete_time'] = ['eq',0];
        $data = $this->where($where)->select();
        return $data;
    }
}