From ec49d28bd4f8a711dcc5c553a0271f6b94ec1bba 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:31:21 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(player):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AE=A0=E7=89=A9=E4=BF=A1=E6=81=AF=E6=9C=8D=E5=8A=A1=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BA=93=E6=9F=A5=E8=AF=A2=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用正确的数据库管理器方法 dbm_fix 替换原有的 dbm 方法, 以确保宠物信息查询功能正常工作。 ``` --- 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 e99814541..7a3b0b99e 100644 --- a/modules/player/service/pet.go +++ b/modules/player/service/pet.go @@ -188,7 +188,7 @@ func (s *PetService) UPdate(t model.PetInfo) error { } func (s *PetService) PetInfo_One(cachetime uint32) *model.Pet { - m := s.dbm(s.Model).Where("catch_time", cachetime) + m := s.dbm_fix(s.Model).Where("catch_time", cachetime) var tt *model.Pet m.Scan(&tt)