审查视图

app/index/model/AgreementModel.php 512 字节
王晓刚 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/25
 * Time: 19:26
 */
namespace app\index\model;

use think\Model;

class AgreementModel extends Model
{
    /**
     * content 自动转化
     * @param $value
     * @return string
     */
    public function getContentAttr($value)
    {
        return cmf_replace_content_file_url(htmlspecialchars_decode($value));
    }
    public function findData($where){
王晓刚 authored
24
        $data = $this->where($where)->find();
王晓刚 authored
25 26 27
        return $data;
    }
}