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

This commit is contained in:
昔念
2026-02-13 22:57:05 +08:00
parent d258274322
commit e5c75f7359
51 changed files with 230 additions and 254 deletions

View File

@@ -125,7 +125,7 @@ func (h Controller) TogglePetBagWarehouse(
if ok {
// ========== 新增index合法性校验 ==========
if index < 0 || index >= len(player.Info.PetList) {
return result, errorcode.ErrorCodes.ErrSystemError
return result, errorcode.ErrorCodes.ErrPokemonIDMismatch
}
player.Service.Pet.UPdate(*pet)
@@ -142,7 +142,7 @@ func (h Controller) TogglePetBagWarehouse(
if !ok {
r := player.Service.Pet.PetInfo_One(data.CatchTime)
if r == nil {
return result, errorcode.ErrorCodes.ErrSystemError
return result, errorcode.ErrorCodes.ErrPokemonNotExists
}
player.Info.PetList = append(player.Info.PetList, r.Data)
result.PetInfo = r.Data