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

View File

@ -1,6 +1,8 @@
package game package game
import ( import (
"fmt"
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
) )
@ -68,7 +70,7 @@ type MakeOrderReq struct {
RealSid string `position:"Body" field:"real_sid"` RealSid string `position:"Body" field:"real_sid"`
RoleId string `position:"Body" field:"role_id"` RoleId string `position:"Body" field:"role_id"`
RoleName string `position:"Body" field:"role_name"` RoleName string `position:"Body" field:"role_name"`
Money float64 `position:"Body" field:"money"` Money string `position:"Body" field:"money"`
ServerName string `position:"Body" field:"server_name"` ServerName string `position:"Body" field:"server_name"`
ProductName string `position:"Body" field:"product_name"` ProductName string `position:"Body" field:"product_name"`
DwId int64 `position:"Body" field:"dw_id"` DwId int64 `position:"Body" field:"dw_id"`
@ -107,7 +109,7 @@ func CreateMakeOrderReq(param MakeOrderParam) *MakeOrderReq {
RealSid: param.RealSid, RealSid: param.RealSid,
RoleId: param.RoleId, RoleId: param.RoleId,
RoleName: param.RoleName, RoleName: param.RoleName,
Money: param.Money, Money: fmt.Sprintf("%v", param.Money),
ServerName: param.ServerName, ServerName: param.ServerName,
ProductName: param.ProductName, ProductName: param.ProductName,
DwId: param.DwId, DwId: param.DwId,