From fa0ed36363b94f298887d5b8e2bb9baebdc40997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Thu, 26 Mar 2026 00:29:25 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(pet):=20=E4=BF=AE=E5=A4=8D=E5=AE=A0?= =?UTF-8?q?=E7=89=A9=E6=9B=B4=E6=96=B0=E6=97=B6=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E6=A8=A1=E5=9E=8B=E6=96=B9=E6=B3=95=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 s.dbm 方法调用更改为 s.dbm_fix,以确保宠物信息更新功能正常工作 ``` --- modules/player/service/pet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/player/service/pet.go b/modules/player/service/pet.go index 41fbecaa1..e99814541 100644 --- a/modules/player/service/pet.go +++ b/modules/player/service/pet.go @@ -173,7 +173,7 @@ RETURNING max_ts; } func (s *PetService) UPdate(t model.PetInfo) error { - m := s.dbm(s.Model).Where("catch_time", t.CatchTime) + m := s.dbm_fix(s.Model).Where("catch_time", t.CatchTime) var tt *model.Pet m.Scan(&tt) if tt == nil {