```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

fix(player): 修复宠物信息服务中的数据库查询方法

使用正确的数据库管理器方法 dbm_fix 替换原有的 dbm 方法,
以确保宠物信息查询功能正常工作。
```
This commit is contained in:
昔念
2026-03-26 00:31:21 +08:00
parent fa0ed36363
commit ec49d28bd4

View File

@@ -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)