1
This commit is contained in:
parent
dc42e3b8d4
commit
37aa2028aa
@ -606,6 +606,7 @@ func (this *player) CMChooseBattleItem(hdr *f5.MsgHdr, msg *cs.CMChooseBattleIte
|
|||||||
ItemType interface{} `json:"item_type"`
|
ItemType interface{} `json:"item_type"`
|
||||||
ItemSubType interface{} `json:"item_sub_type"`
|
ItemSubType interface{} `json:"item_sub_type"`
|
||||||
HasLuckySymbol interface{} `json:"has_lucky_symbol"`
|
HasLuckySymbol interface{} `json:"has_lucky_symbol"`
|
||||||
|
TotalLucky interface{} `json:"total_lucky"`
|
||||||
}{}
|
}{}
|
||||||
err := json.Unmarshal([]byte(rsp.GetRawData()), &rspObj)
|
err := json.Unmarshal([]byte(rsp.GetRawData()), &rspObj)
|
||||||
if err != nil || rspObj.Errcode != 0 {
|
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.ItemType, &itemType)
|
||||||
q5.DuckToSimple(rspObj.ItemSubType, &itemSubType)
|
q5.DuckToSimple(rspObj.ItemSubType, &itemSubType)
|
||||||
q5.DuckToSimple(rspObj.HasLuckySymbol, &this.hasLuckySymbol)
|
q5.DuckToSimple(rspObj.HasLuckySymbol, &this.hasLuckySymbol)
|
||||||
|
q5.DuckToSimple(rspObj.TotalLucky, &this.totalLucky)
|
||||||
if itemNum > 0 {
|
if itemNum > 0 {
|
||||||
found := false
|
found := false
|
||||||
for _, p := range(this.battleItems) {
|
for _, p := range(this.battleItems) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user