7
0

金额优化

This commit is contained in:
许 洋 2026-05-11 18:58:41 +08:00
parent 0b207d8aa8
commit dc305b07be
2 changed files with 23 additions and 21 deletions

View File

@ -386,16 +386,16 @@ func TestGetActivityVipUserNewBlacklist(t *testing.T) {
func TestCreateMakeOrderReq(t *testing.T) {
req := CreateMakeOrderReq(MakeOrderParam{
Username: "vd22543241",
Gid: 123,
Sid: "123",
RealSid: "123",
RoleId: "123",
RoleName: "13",
Money: 6,
ServerName: "333",
ProductName: "666",
DwId: 666,
Username: "rz35990497",
Gid: 7874,
Sid: "1562",
RealSid: "",
RoleId: "587102307",
RoleName: "繁华之泰坦",
Money: 630,
ServerName: "碧水连天",
ProductName: "630",
DwId: 1008,
})
client, err := NewClient()

View File

@ -1,6 +1,8 @@
package game
import (
"fmt"
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
)
@ -62,16 +64,16 @@ func CreateIsBlockOutIosResp() *IsBlockOutIosResp {
// MakeOrderReq 预下单请求
type MakeOrderReq struct {
*requests.RpcRequest
Username string `position:"Body" field:"username"`
Gid int64 `position:"Body" field:"gid"`
Sid string `position:"Body" field:"sid"`
RealSid string `position:"Body" field:"real_sid"`
RoleId string `position:"Body" field:"role_id"`
RoleName string `position:"Body" field:"role_name"`
Money float64 `position:"Body" field:"money"`
ServerName string `position:"Body" field:"server_name"`
ProductName string `position:"Body" field:"product_name"`
DwId int64 `position:"Body" field:"dw_id"`
Username string `position:"Body" field:"username"`
Gid int64 `position:"Body" field:"gid"`
Sid string `position:"Body" field:"sid"`
RealSid string `position:"Body" field:"real_sid"`
RoleId string `position:"Body" field:"role_id"`
RoleName string `position:"Body" field:"role_name"`
Money string `position:"Body" field:"money"`
ServerName string `position:"Body" field:"server_name"`
ProductName string `position:"Body" field:"product_name"`
DwId int64 `position:"Body" field:"dw_id"`
}
type MakeOrderRespData struct {
@ -107,7 +109,7 @@ func CreateMakeOrderReq(param MakeOrderParam) *MakeOrderReq {
RealSid: param.RealSid,
RoleId: param.RoleId,
RoleName: param.RoleName,
Money: param.Money,
Money: fmt.Sprintf("%v", param.Money),
ServerName: param.ServerName,
ProductName: param.ProductName,
DwId: param.DwId,