文档
测试

显示试玩任务

POST
http://localhost:8081/apiTaskRecord/showTryPlayTaskInfo?userId=10227&pageNum=1

请求参数

参数名
类型
描述
必填
userId
用户ID
必填
pageNum
当前页码,不传则不分页,如1(每页20条)
必填

响应参数

参数名
类型
描述
必填
code
string
示例:0
必填
data
array
数据列表
必填
taskDesc
string
描述 示例:试玩1分钟,返回即可领取
必填
clickPath
string
标小程序跳转路径 示例:pages/index
必填
rewardCoin
int
奖励金币数量 示例:2147483647
必填
appId
string
目标小程序APPID 示例:a03
必填
icon
string
图标 示例:https://cdn.cd08.com/file/photo/icon_duihuanZZ3.png
必填
needTime
int
需要试玩时间 示例:60
必填
state
int
-1任务未开始(有叹号) 0任务已开始但未完成 1任务已完成待领取奖励 示例:1
必填
title
string
标题 示例:一刀传世
必填
rewardGiftNum
int
奖励礼券数量 示例:2
必填
taskId
int
任务ID
必填
message
string
示例:成功
必填

说明 / 示例

```json { "code": "0", "data": [ { "taskDesc": "试玩1分钟,返回即可领取", "clickPath": "pages/index", "rewardCoin": 2147483647, "appId": "a03", "icon": "https://cdn.cd08.com/file/photo/icon_duihuanZZ3.png", "needTime": 60, "state": 1, "taskId": 3, "title": "一刀传世", "rewardGiftNum": 2 }, { "taskDesc": "试玩2分钟,返回即可领取", "clickPath": "pages/index", "rewardCoin": 2147483647, "appId": "a02", "icon": "https://cdn.cd08.com/file/photo/icon_duihuanZZ3.png", "needTime": 120, "state": 0, "taskId": 2, "title": "末日大逃杀", "rewardGiftNum": 2 }, { "taskDesc": "试玩2分钟,返回即可领取", "clickPath": "pages/index", "rewardCoin": 2147483647, "appId": "a01", "icon": "https://cdn.cd08.com/file/photo/icon_duihuanZZ3.png", "needTime": 120, "state": -1, "taskId": 1, "title": "九州仙剑传", "rewardGiftNum": 2 } ], "message": "成功" } ```