|
@@ -231,6 +231,7 @@ type ExtrasDn struct {
|
|
|
Platform string `json:"platform"`
|
|
Platform string `json:"platform"`
|
|
|
GoodsId int32 `json:"goodsId"`
|
|
GoodsId int32 `json:"goodsId"`
|
|
|
GoodsType int32 `json:"goodsType"`
|
|
GoodsType int32 `json:"goodsType"`
|
|
|
|
|
+ Amount string `json:"amount"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type ExtrasDnIos struct {
|
|
type ExtrasDnIos struct {
|
|
@@ -982,6 +983,18 @@ func webPayNotify(webNtf *WebNotifyData, payAmount float32, c *gin.Context) stri
|
|
|
return "SUCCESS"
|
|
return "SUCCESS"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+var LubCoinToUsd = map[string]string{
|
|
|
|
|
+ "0.99": "99.00",
|
|
|
|
|
+ "1.99": "199.00",
|
|
|
|
|
+ "2.99": "249.00",
|
|
|
|
|
+ "4.99": "449.00",
|
|
|
|
|
+ "9.99": "899.00",
|
|
|
|
|
+ "14.99": "1290.00",
|
|
|
|
|
+ "19.99": "1790.00",
|
|
|
|
|
+ "49.99": "4690.00",
|
|
|
|
|
+ "99.99": "9490.00",
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func webPayNotifyDn(cpOrderId string, Amount, sdkOrderId string) string {
|
|
func webPayNotifyDn(cpOrderId string, Amount, sdkOrderId string) string {
|
|
|
//流程处理gmweb保存订单状态到redis中设置为 成功充值状态
|
|
//流程处理gmweb保存订单状态到redis中设置为 成功充值状态
|
|
|
//发送给gameserver,成功收到后设置订单状态为成功获取充值状态,如果gameserver没有收到
|
|
//发送给gameserver,成功收到后设置订单状态为成功获取充值状态,如果gameserver没有收到
|
|
@@ -998,7 +1011,7 @@ func webPayNotifyDn(cpOrderId string, Amount, sdkOrderId string) string {
|
|
|
//return "FAILED"
|
|
//return "FAILED"
|
|
|
return fmt.Sprintf("FAILED,cpOrderId=%v err=%v", cpOrderId, err)
|
|
return fmt.Sprintf("FAILED,cpOrderId=%v err=%v", cpOrderId, err)
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ Amount = LubCoinToUsd[Amount]
|
|
|
payInfo := &serverproto.PayOrderSaveInfo{}
|
|
payInfo := &serverproto.PayOrderSaveInfo{}
|
|
|
err = model.GetDecodeMessage(payInfo, msgStr)
|
|
err = model.GetDecodeMessage(payInfo, msgStr)
|
|
|
if err != nil {
|
|
if err != nil {
|