Compare commits
No commits in common. "master" and "v1.2.7" have entirely different histories.
@ -151,7 +151,6 @@ type GameInfoData struct {
|
|||||||
UpdatedAt string `json:"updated_at"`
|
UpdatedAt string `json:"updated_at"`
|
||||||
UpdatedRealname string `json:"updated_realname"`
|
UpdatedRealname string `json:"updated_realname"`
|
||||||
UpdatedUsername string `json:"updated_username"`
|
UpdatedUsername string `json:"updated_username"`
|
||||||
IsAuth int `json:"is_auth"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateGetGameInfoByIdReq(gameId, noCache int) *GetGameInfoReq {
|
func CreateGetGameInfoByIdReq(gameId, noCache int) *GetGameInfoReq {
|
||||||
|
@ -25,10 +25,7 @@ func TestGetUserRoleList(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
// 不限定角色
|
req := CreateGetUserRoleListRequest(63610626, 2850)
|
||||||
//req := CreateGetUserRoleListRequest(221016372, 7874, 0, "")
|
|
||||||
// 限定角色
|
|
||||||
req := CreateGetUserRoleListRequest(221016372, 7874, 265500390, "勇闯关东")
|
|
||||||
resp, err := client.GetUserRoleList(req)
|
resp, err := client.GetUserRoleList(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
|
@ -85,7 +85,7 @@ func GetSign() (ts int64, sign string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CreateGetUserRoleListRequest 获取玩家角色列表
|
// CreateGetUserRoleListRequest 获取玩家角色列表
|
||||||
func CreateGetUserRoleListRequest(uid int, gameId int, roleId int, roleServer string) (req *GetUserRoleListRequest) {
|
func CreateGetUserRoleListRequest(uid int, gameId int) (req *GetUserRoleListRequest) {
|
||||||
ts, sign := GetSign()
|
ts, sign := GetSign()
|
||||||
|
|
||||||
req = &GetUserRoleListRequest{
|
req = &GetUserRoleListRequest{
|
||||||
@ -98,8 +98,6 @@ func CreateGetUserRoleListRequest(uid int, gameId int, roleId int, roleServer st
|
|||||||
"method": "get",
|
"method": "get",
|
||||||
"uid": fmt.Sprintf("%d", uid),
|
"uid": fmt.Sprintf("%d", uid),
|
||||||
"game_id": fmt.Sprintf("%d", gameId),
|
"game_id": fmt.Sprintf("%d", gameId),
|
||||||
"role_id": fmt.Sprintf("%d", roleId),
|
|
||||||
"role_server": roleServer,
|
|
||||||
"time": fmt.Sprintf("%v", ts),
|
"time": fmt.Sprintf("%v", ts),
|
||||||
"sign": sign,
|
"sign": sign,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user