金额优化
This commit is contained in:
parent
0b207d8aa8
commit
dc305b07be
@ -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()
|
||||
|
||||
@ -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"
|
||||
)
|
||||
@ -68,7 +70,7 @@ type MakeOrderReq struct {
|
||||
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"`
|
||||
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"`
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user