free_count.md 1.2 KB

免费剩余次数

描述

获取玩家免费游戏中剩余游戏次数

请求方式( Host-> BeSoft):post

编码方式:application/x-www-form-urlencoded

Besoft响应的数据格式是: application/json

请求地址

{besoftapi}/api/game/userfree

请求参数

| 名称 | 类型 | 必要 |描述| |:--------:|:-----:|:--------:|:--------:| | cert | string | Y |安全代码| | extension1 | string | Y |代理帐号| | useracc | string | Y |玩家账号|

示例

  • URL:
  • HTTP Method
    • POST
  • 表单数据

    Content-Type: application/x-www-form-urlencoded

    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
    extension1:adminweb
    useracc:test1
    

返回结果

| 名称 | 类型 | 必要 | |:--------:|:-----:|:--------:| | status | int32 | 状态代码 | | gidfree | array | 游戏列表| | gidfree.gid | string | 游戏ID| | gidfree.freecount | int32 | 剩余免费次数|

## 成功的结果

{
	"status": 1,
	"gidfree": [
		{
			"gid": "be0002",
			"freecount": 22
		}
	]
}

## 失败的结果

{
	"ret": 10,
	"info": "user not exist"
}