This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user