playroom优化
This commit is contained in:
parent
3cfef77824
commit
0e526cadfd
@ -980,8 +980,8 @@ func (p *PlayroomMod) AddUpvote() {
|
||||
}
|
||||
|
||||
func (p *PlayroomMod) PlayroomPetAirSet(Id int) error {
|
||||
if !GoUtil.InArray(Id, p.PetAir) {
|
||||
return fmt.Errorf("pet air not found")
|
||||
if _, ok := p.NewPetAir[Id]; !ok {
|
||||
return fmt.Errorf("PlayroomPetAirSet Id is not ok")
|
||||
}
|
||||
p.PetAirSet = Id
|
||||
return nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user