fix #55
This commit is contained in:
+2
-1
@@ -42,11 +42,13 @@ func (ps *PeerService) UuidBindUserId(deviceId string, uuid string, userId uint)
|
||||
ps.Update(peer)
|
||||
} else {
|
||||
// 不存在则创建
|
||||
/*if deviceId != "" {
|
||||
global.DB.Create(&model.Peer{
|
||||
Id: deviceId,
|
||||
Uuid: uuid,
|
||||
UserId: userId,
|
||||
})
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,4 +145,3 @@ func (ps *PeerService) BatchDelete(ids []uint) error {
|
||||
func (ps *PeerService) Update(u *model.Peer) error {
|
||||
return global.DB.Model(u).Updates(u).Error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user