支付返回参数扩展

This commit is contained in:
sk 2024-08-09 16:37:57 +08:00
parent 9dd4496b55
commit 16bcd9a858
4 changed files with 650 additions and 616 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1064,6 +1064,9 @@ message PayItem {
message SCPayGoodsInfo{
repeated int32 Gold = 1;// 0. 1. 3.
repeated PayItem Item = 2;//
int32 ShopId = 3;// id
int64 Money = 4;//
string Name = 5;//
}
//

2
public

@ -1 +1 @@
Subproject commit 3693cac745d7d5c8773dd2c14cd47bbfcdfc71bd
Subproject commit 20b583ee6e181be5127d5eef83d4739efbbe4502

View File

@ -4113,8 +4113,11 @@ func (this *Player) GetPayGoodsInfo() {
BagMgrSingleton.AddItems(this, items, 0, info.GainWay, info.Operator, info.Remark, 0, 0, false)
PayGoodsInfo := &playerproto.SCPayGoodsInfo{
Gold: info.Amount,
Item: itemInfo,
Gold: info.Amount,
Item: itemInfo,
ShopId: info.ShopId,
Money: int64(info.ConsumeTypeNum),
Name: info.Remark,
}
proto.SetDefaults(PayGoodsInfo)
this.SendToClient(int(playerproto.PlayerPacketID_PACKET_SC_PAYGOODSINFO), PayGoodsInfo)