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

This commit is contained in:
昔念
2026-04-02 10:23:07 +08:00
parent f810a2ae86
commit 6aa601bb06
2 changed files with 2 additions and 3 deletions

View File

@@ -337,7 +337,6 @@ func (h Controller) TogglePetBagWarehouse(
return result, errorcode.ErrorCodes.ErrSystemError
}
player.Info.BackupPetList = append(player.Info.BackupPetList[:index], player.Info.BackupPetList[index+1:]...)
player.Service.Info.Save(*player.Info)
case 1:
if len(player.Info.PetList) >= 6 && len(player.Info.BackupPetList) >= 6 {
@@ -360,7 +359,7 @@ func (h Controller) TogglePetBagWarehouse(
player.Info.BackupPetList = append(player.Info.BackupPetList, petInfo.Data)
}
result.PetInfo = petInfo.Data
player.Service.Info.Save(*player.Info)
}
if len(player.Info.PetList) > 0 {

View File

@@ -17,7 +17,7 @@ import (
)
func init() {
zero.OnCommand("扭蛋").
zero.OnCommand("扭蛋", zero.Type("message/group")).
Handle(func(ctx *zero.Ctx) {
msgs := strings.Fields(ctx.Event.Message.String())
if len(msgs) <= 1 {