``` refactor(pet): 优化宠物特性随机逻辑并修复宠物删除数组操作

This commit is contained in:
1
2025-12-30 02:15:33 +00:00
parent 94391abe5f
commit f91b88e90f
5 changed files with 17 additions and 21 deletions

View File

@@ -0,0 +1,17 @@
package controller
import (
"blazing/common/socket/errorcode"
"blazing/logic/service/pet"
"blazing/logic/service/player"
)
func (h Controller) IsCollect(
data *pet.C2S_IS_COLLECT, c *player.Player) (result *pet.S2C_IS_COLLECT, err errorcode.ErrorCode) { //这个时候player应该是空的
result = &pet.S2C_IS_COLLECT{
ID: data.Type,
IsCom: 0,
}
return result, 0
}