tp5 gets the auto-increment id of the inserted data

$id = model('database name')->insertGetId($udata);

Guess you like

Origin blog.csdn.net/qq_43737121/article/details/105935562