From 605e88e04c2c46eef07cc40ae4061fea65748f6c Mon Sep 17 00:00:00 2001 From: lejianwen <84855512@qq.com> Date: Wed, 2 Apr 2025 09:50:16 +0800 Subject: [PATCH] fix: Update peer based on the UUID (#180) --- http/controller/api/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/controller/api/peer.go b/http/controller/api/peer.go index 7c569ca..d47613b 100644 --- a/http/controller/api/peer.go +++ b/http/controller/api/peer.go @@ -30,7 +30,7 @@ func (p *Peer) SysInfo(c *gin.Context) { return } fpe := f.ToPeer() - pe := service.AllService.PeerService.FindById(f.Id) + pe := service.AllService.PeerService.FindByUuid(f.Uuid) if pe.RowId == 0 { pe = f.ToPeer() pe.UserId = service.AllService.UserService.FindLatestUserIdFromLoginLogByUuid(pe.Uuid)