This commit is contained in:
hahwu 2025-10-28 11:11:23 +08:00
parent 6b64677a12
commit c808db5db5
3 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,7 @@ func init() {
type ClusterJoinData struct { type ClusterJoinData struct {
ServerId int ServerId int
Country int
RemoteAddr string RemoteAddr string
} }

View File

@ -234,10 +234,14 @@ func (p *PlayerChessData) HandleChess(player *Player, handle_list []*msg.ChessHa
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
get_star_num := 0
if len(items) > 0 && items[0].Id == item.ITEM_STAR_ID {
get_star_num = items[0].Num
}
player.TeLog("sell_item", map[string]interface{}{ player.TeLog("sell_item", map[string]interface{}{
"merge_item_id": ChessId, "merge_item_id": ChessId,
"product_name": mergeDataCfg.GetNameById(ChessId), "product_name": mergeDataCfg.GetNameById(ChessId),
"get_star_num": items[0].Num, "get_star_num": get_star_num,
}) })
itemList = item.Merge(itemList, items) itemList = item.Merge(itemList, items)
case msg.HANDLE_TYPE_REMOVE: //移除棋子 case msg.HANDLE_TYPE_REMOVE: //移除棋子

View File

@ -96,6 +96,7 @@ func ReqFriendPlayerSimple(player *Player, buf []byte) error {
Time: LastActLog.Time, Time: LastActLog.Time,
Param: LastActLog.Param, Param: LastActLog.Param,
} }
player.PushClientRes(PlayerSimpleData)
return nil return nil
} }