退出

游戏站-角色查询

信游科技 2019/8/23 17:34:12


角色查询.md

简要描述:

  • 发布站角色查询接口

请求URL:

  • http://发布站域名/api/game/

请求方式:

  • POST/GET

请求参数:

名称 参数名 必选 类型 说明
平台ID pid string VIP站分配给请求方的唯一标识
用户ID uid string 信游系统对用户的唯一标识
时间戳 timespan string 时间戳,用于判断请求是否超时
签名 sign string MD5签名字符串,转换成小写
接口类型 type string 固定值:role
游戏id gid string 信游系统对游戏的唯一标识
游戏服id sid string 信游系统对游戏服的唯一标识

非请求参数,双方私下约定或回传:

名称 参数名 必选 类型 说明
密钥 pkey string 我方提供,用于签名

签名

签名方法:sign=md5(pid#key#timespan#type)(转换成小写)

说明:md5加密参数值,注意只加密参数值,不带参数名,用英文的#号连接各参数值

例如:加密前: xykj#sdfsdfsdfeeff#1541732723 #card加密后:91e03b2063cf07c3e371430b8e315e3f

返回示例

{ "code": 1, "msg": null, "data": [ { "Id": { "Created": "2019-04-08T10:11:43Z" }, "uid": "10446", "gid": "1021", "sid": "1037", "rolename": null, "level": null, "professional": null, "conversion": null, "info1": "", "info2": "", "info3": "" }, { "Id": { "Created": "2019-04-08T10:11:30Z" }, "uid": "10446", "gid": "1021", "sid": "1037", "rolename": "username", "level": "level", "professional": "professional", "conversion": "conversion", "info1": "", "info2": "", "info3": "" }, { "Id": { "Created": "2019-04-08T10:02:13Z" }, "uid": "10446", "gid": "1021", "sid": "1037", "rolename": null, "level": null, "professional": null, "conversion": null, "info1": "", "info2": "", "info3": "" }, { "Id": { "Created": "2019-04-08T10:02:08Z" }, "uid": "10446", "gid": "1021", "sid": "1037", "rolename": "username", "level": "level", "professional": "professional", "conversion": "conversion", "info1": "", "info2": "", "info3": "" }, { "Id": { "Created": "2019-04-08T10:01:17Z" }, "uid": "10446", "gid": "1021", "sid": "1037", "rolename": "username", "level": "level", "professional": "professional", "conversion": "conversion", "info1": "", "info2": "", "info3": "" }, { "Id": { "Created": "2019-04-08T10:00:26Z" }, "uid": "10446", "gid": "1021", "sid": "1037", "rolename": "username", "level": "level", "professional": "professional", "conversion": "conversion", "info1": "", "info2": "", "info3": "" }, { "Id": { "Created": "2019-04-08T09:11:40Z" }, "uid": "10446", "gid": "1021", "sid": "1037", "rolename": "username", "level": "level", "professional": "professional", "conversion": "conversion", "info1": "", "info2": "", "info3": "" } ] }

返回参数说明

参数名 类型 说明
code int 返回值
msg string 说明
data object 返回信息

备注

  • 更多返回错误代码请看首页的错误代码描述

请求示例

http://play2019.wan911.com/api/game/?pid=xykj&uid=10446&gid=1021&sid=1037&timespan=1554722816&sign=6cb741a1cb4be74a6c0f02864ec1865e&type=role