fix(pet): 修复宠物更新时的数据库模型方法调用错误 将 s.dbm 方法调用更改为 s.dbm_fix,以确保宠物信息更新功能正常工作 ```
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user