我要验证group_id和user_id。不要给出相同的值,例如group_id user_id1 21 31 2不要重复
[如果我没记错,您正在使用attach将数据插入到数据透视表中。如果是这种情况,则可以使用sync
attach
sync