```
feat(pet): 优化宠物融合错误码并记录原始捕获时间 - 将宠物融合过程中的错误码从 ErrSystemBusy 细分为多个更具体的错误码, 如 ErrPokemonNotFusionReady、ErrPokemonNotFusionReady2 等,便于问题定位。 - 在融合成功后,新增记录主宠的旧捕捉时间(OldCatchTime)字段。 - 调整战斗捕捉逻辑,使用对手玩家的第一个宠物信息进行添加,并重置战斗结束原因。 refactor(service): 移除未使用的管理员会话结构体字段和清理部分冗余代码 - 注释掉 base_sys_user.go
This commit is contained in:
@@ -33,6 +33,10 @@ func NewUserService(id uint32) *UserService {
|
||||
}
|
||||
|
||||
func (s *BaseService) GModel(m cool.IModel) *gdb.Model {
|
||||
if s.userid != 0 {
|
||||
return cool.DBM(m).Where("player_id", s.userid)
|
||||
} else {
|
||||
return cool.DBM(m)
|
||||
}
|
||||
|
||||
return cool.DBM(m).Where("player_id", s.userid)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user