|
@@ -3709,6 +3709,10 @@ func (this *Role) PayInfoGet(goodsType, goodsId, count int32, rushStage, rushRou
|
|
|
corderid := strconv.FormatUint(payOrderInfo.CpOrderId, 10)
|
|
corderid := strconv.FormatUint(payOrderInfo.CpOrderId, 10)
|
|
|
price := fmt.Sprintf("%.2f", payOrderInfo.Amount)
|
|
price := fmt.Sprintf("%.2f", payOrderInfo.Amount)
|
|
|
guid, _ := strconv.Atoi(this.Guid2)
|
|
guid, _ := strconv.Atoi(this.Guid2)
|
|
|
|
|
+ name := this.GetNickName()
|
|
|
|
|
+ if name == "" {
|
|
|
|
|
+ name = "Player"
|
|
|
|
|
+ }
|
|
|
ordeinfo := OrderRequest{
|
|
ordeinfo := OrderRequest{
|
|
|
GameArea: strconv.Itoa(server),
|
|
GameArea: strconv.Itoa(server),
|
|
|
GameLevel: strconv.Itoa(int(this.GetRoleLevel())),
|
|
GameLevel: strconv.Itoa(int(this.GetRoleLevel())),
|
|
@@ -3716,10 +3720,10 @@ func (this *Role) PayInfoGet(goodsType, goodsId, count int32, rushStage, rushRou
|
|
|
GameCurrency: "USD",
|
|
GameCurrency: "USD",
|
|
|
GamePrice: price,
|
|
GamePrice: price,
|
|
|
GameRoleId: strconv.Itoa(int(this.GetUUid())),
|
|
GameRoleId: strconv.Itoa(int(this.GetUUid())),
|
|
|
- GameRoleName: this.GetNickName(),
|
|
|
|
|
|
|
+ GameRoleName: name,
|
|
|
GameGuid: guid,
|
|
GameGuid: guid,
|
|
|
- NotifyId: "-1",
|
|
|
|
|
- Subject: payOrderInfo.GoodsName,
|
|
|
|
|
|
|
+ NotifyId: service.GetServiceConfig().Node.PayCallBack,
|
|
|
|
|
+ Subject: price + " Pack",
|
|
|
GameAccessVersion: "2507",
|
|
GameAccessVersion: "2507",
|
|
|
}
|
|
}
|
|
|
extra := &Extras{
|
|
extra := &Extras{
|
|
@@ -3742,7 +3746,11 @@ func (this *Role) PayInfoGet(goodsType, goodsId, count int32, rushStage, rushRou
|
|
|
util.ErrorF("uid=%v GenerateGameSign err:%v", this.GetUUid(), err)
|
|
util.ErrorF("uid=%v GenerateGameSign err:%v", this.GetUUid(), err)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- ackMsg.GoodsName = info
|
|
|
|
|
|
|
+ ordeinfo.GameSign = info
|
|
|
|
|
+ b, _ := json.Marshal(ordeinfo)
|
|
|
|
|
+ payOrderInfo.GoodsName = string(b)
|
|
|
|
|
+
|
|
|
|
|
+ util.ErrorF("uid:%v pay info platform:%v order:%v", this.GetUUid(), this.platform, payOrderInfo)
|
|
|
ssSaveReqMsg := &serverproto.SSPayInfoSaveReq{
|
|
ssSaveReqMsg := &serverproto.SSPayInfoSaveReq{
|
|
|
PayOrderInfo: payOrderInfo,
|
|
PayOrderInfo: payOrderInfo,
|
|
|
SaveNotify: true,
|
|
SaveNotify: true,
|
|
@@ -3995,8 +4003,8 @@ func (this *Role) payInfoGet(goodsType, goodsId, count int32, rushStage, rushRou
|
|
|
return serverproto.ErrorCode_ERROR_FAIL, nil
|
|
return serverproto.ErrorCode_ERROR_FAIL, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- payRewardInfo.GoodsName = service.GetServiceConfig().Node.PayCallBack
|
|
|
|
|
- util.ErrorF("uid:%v pay info platform:%v order:%v", this.GetUUid(), this.platform, payRewardInfo)
|
|
|
|
|
|
|
+ //payRewardInfo.GoodsName = service.GetServiceConfig().Node.PayCallBack
|
|
|
|
|
+ //util.ErrorF("uid:%v pay info platform:%v order:%v", this.GetUUid(), this.platform, payRewardInfo)
|
|
|
//if this.platform == SDKPlatform_YouYi_IOS || this.platform == "PC" {
|
|
//if this.platform == SDKPlatform_YouYi_IOS || this.platform == "PC" {
|
|
|
// payRewardInfo.GoodsName += ",1"
|
|
// payRewardInfo.GoodsName += ",1"
|
|
|
//}
|
|
//}
|