如果有遇到model查询出来的字段原本应该为整型才对,结果是字符串,怎么办在model类里面添加类似于如下代码即可protected $type = [
'field' =>...
tp5 model指定字段数据类型