InsuranceCompanyModel.php
528 字节
<?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;
}
}