上分修改
This commit is contained in:
parent
b34fc744f8
commit
90d76a17c8
|
@ -3049,7 +3049,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pack.Success = true
|
pack.Success = true
|
||||||
pack.Data.Count = msg.Count
|
pack.Data.Count = player.Coin
|
||||||
|
|
||||||
jsonDataRsp, err = json.Marshal(pack)
|
jsonDataRsp, err = json.Marshal(pack)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -3101,6 +3101,8 @@ func init() {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
remainNum = findPlayer.Coin + addcoin
|
||||||
return nil
|
return nil
|
||||||
}), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) {
|
}), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) {
|
||||||
pack.Code = int(webapiproto.TagCode_SUCCESS)
|
pack.Code = int(webapiproto.TagCode_SUCCESS)
|
||||||
|
@ -3113,7 +3115,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pack.Success = true
|
pack.Success = true
|
||||||
pack.Data.Count = msg.Count
|
pack.Data.Count = remainNum
|
||||||
|
|
||||||
jsonDataRsp, err = json.Marshal(pack)
|
jsonDataRsp, err = json.Marshal(pack)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue