This commit is contained in:
@@ -19,6 +19,10 @@ func (h Controller) GetUserSimInfo(data *user.SimUserInfoInboundInfo, player *pl
|
||||
if ok {
|
||||
copier.Copy(result, t)
|
||||
} else {
|
||||
r := player.Service.Info.Person(data.UserId)
|
||||
if r == nil {
|
||||
return nil, errorcode.ErrorCode(errorcode.ErrorCodes.ErrSystemError)
|
||||
}
|
||||
copier.Copy(result, player.Service.Info.Person(data.UserId).Data)
|
||||
}
|
||||
|
||||
|
||||
@@ -228,7 +228,9 @@ func (pet *PetInfo) FixShiny() {
|
||||
func (pet *PetInfo) RandomByWeightShiny() {
|
||||
|
||||
co := service.NewShinyService().RandomByWeightShiny(pet.ID)
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, *co)
|
||||
if co != nil {
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, *co)
|
||||
}
|
||||
|
||||
}
|
||||
func (pet *PetInfo) IsShiny() bool {
|
||||
|
||||
Reference in New Issue
Block a user