This commit is contained in:
aozhiwei 2024-10-18 17:40:20 +08:00
parent dc42e3b8d4
commit 37aa2028aa

View File

@ -606,6 +606,7 @@ func (this *player) CMChooseBattleItem(hdr *f5.MsgHdr, msg *cs.CMChooseBattleIte
ItemType interface{} `json:"item_type"`
ItemSubType interface{} `json:"item_sub_type"`
HasLuckySymbol interface{} `json:"has_lucky_symbol"`
TotalLucky interface{} `json:"total_lucky"`
}{}
err := json.Unmarshal([]byte(rsp.GetRawData()), &rspObj)
if err != nil || rspObj.Errcode != 0 {
@ -623,6 +624,7 @@ func (this *player) CMChooseBattleItem(hdr *f5.MsgHdr, msg *cs.CMChooseBattleIte
q5.DuckToSimple(rspObj.ItemType, &itemType)
q5.DuckToSimple(rspObj.ItemSubType, &itemSubType)
q5.DuckToSimple(rspObj.HasLuckySymbol, &this.hasLuckySymbol)
q5.DuckToSimple(rspObj.TotalLucky, &this.totalLucky)
if itemNum > 0 {
found := false
for _, p := range(this.battleItems) {