1 添加用户前先得添加角色
2 先添加用户数据到user,再添加 user_id,role_id 到user_role
3
添加用户 之添加保存
原文:https://www.cnblogs.com/finddata/p/10010551.html