$this->db->insert('goods',$data); $gid=$this->db->insert_id('goods');
return $gid;
转载于:https://www.cnblogs.com/hgj123/p/3910712.html