<?php namespace app\index\model; use think\Model; class Unit extends Model{ //计量单位表 protected $type = [ 'more' => 'json' ]; }