一、模型类型转换 1、系统可以通过模型端设置写入或读取时对字段类型进行转换 2、在模型端设置想要类型转换的字段属性,属性值为数组 protected $type=[ 'price' => 'integer', 'status' => 'boolean', 'create_time' =&