56 lines
1.1 KiB
Go
56 lines
1.1 KiB
Go
|
package userlive
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
// 获取用户累计付费
|
||
|
func TestBan(t *testing.T) {
|
||
|
client, err := NewClient()
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
req := CreateBanReq(BanReqParam{
|
||
|
ActionTime: time.Now().Unix(),
|
||
|
EventType: 0,
|
||
|
Ip: "127.0.0.1",
|
||
|
GameId: 8654,
|
||
|
UserName: "aq36604627",
|
||
|
Uid: 632308087,
|
||
|
ServerId: 123,
|
||
|
RoleId: "123",
|
||
|
BundleId: "asdfas",
|
||
|
GameName: "fasdf",
|
||
|
GameVersion: "fasdf",
|
||
|
SdkVersion: "fasdf",
|
||
|
Os: "fasd",
|
||
|
OsVersion: "faf",
|
||
|
InApp: "fasdf",
|
||
|
Ua: "fasdfas",
|
||
|
NetworkType: "fasdfa",
|
||
|
IsVirtual: "-1",
|
||
|
Cpu: "cpu",
|
||
|
DeviceModel: "dfasdf",
|
||
|
Baseband: "fasdfa",
|
||
|
Resolution: "fasdfa",
|
||
|
Battery: "fasdf",
|
||
|
LongId: "fasdf",
|
||
|
OriginImei: "fasdf",
|
||
|
Imei: "fasdf",
|
||
|
OriginOaid: "fasdf",
|
||
|
Oaid: "fasdf",
|
||
|
AndroidId: "fasdf",
|
||
|
Idfa: "fsdf",
|
||
|
Idfv: "fasdf",
|
||
|
DeviceId: "fasdf",
|
||
|
})
|
||
|
|
||
|
resp, err := client.CreateBanReq(req)
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
fmt.Println(resp.Code, resp.Msg, resp.Data)
|
||
|
}
|