thinkphp5--模型

CURD操作

添加数据

添加数据返回自增主键id

$uid = $this->db->insertGetId($data);
原文地址:https://www.cnblogs.com/liwuming/p/10199032.html