支付返回参数扩展

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

@ -4115,6 +4115,9 @@ func (this *Player) GetPayGoodsInfo() {
PayGoodsInfo := &playerproto.SCPayGoodsInfo{
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)