AgreementModel.php 512 字节
<?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){
        $data = $this->where($where)->find();
        return $data;
    }
}