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

This commit is contained in:
昔念
2026-04-15 22:42:56 +08:00
parent ee8b0a2182
commit 9f7fd83626
3 changed files with 11 additions and 15 deletions

View File

@@ -48,9 +48,8 @@ func (h Controller) PetReleaseToWarehouse(
if inBag || inBackup || freeForbidden == 1 {
return nil, errorcode.ErrorCodes.ErrCannotReleaseNonWarehouse
}
if !player.Service.Pet.UpdateFree(data.CatchTime, 1) {
return nil, errorcode.ErrorCodes.ErrSystemError
if !player.Service.Pet.UpdateFree(data.CatchTime, 0, 1) {
return nil, errorcode.ErrorCodes.ErrCannotReleaseNonWarehouse
}
return nil, 0