```
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

fix(pet): 修复宠物更新时的数据库模型方法调用错误

将 s.dbm 方法调用更改为 s.dbm_fix,以确保宠物信息更新功能正常工作
```
This commit is contained in:
昔念
2026-03-26 00:29:25 +08:00
parent 1f614e4904
commit fa0ed36363

View File

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