摘要: //DB操作返回是数组。模型直接操作返回是对象 //对象类型转换数组 //打开 database.php 增加或修改参数 'resultset_type' => '\think\Collection', //即可连贯操作 model('user')->select()->toArray() $list = collection($list)->toArray(); 阅读全文
posted @ 2018-09-18 23:19 冷空气的清晰 阅读(400) 评论(0) 推荐(0) 编辑