文档
测试

获取游戏初始化

POST
wx/newyear/init

响应参数

参数名
类型
描述
必填
uuid
string
单次提交token
必填
relateKey
string
用户数据关联key。此值作为分享给朋友的链接地址中的参数,例如:/url?relateKey=relateKey(用JS-API设置)
必填
subscribe
int
1:已关注 0:未关注
必填
gameCount
int
默认剩余游戏次数。刚开始默认3
必填
shareCount
int
分享剩余游戏次数。刚开始默认3
必填
timestamp
string
JS-API时间戳
必填
nonceStr
string
JS-API随机字符串
必填
signature
string
JS-API签名
必填
appId
string
固定为"wx262ec651fa33be2a"。就不作为结果返回了
必填
headImgUrl
string
当前用户头像
必填
share
int
朋友助力次数。原始默认0
必填
nickName
string
昵称
必填

说明 / 示例

```json { status:"success", message:"获取初始化数据", data:{ uuid:'7966065961209439700', relateKey:'8598155493804755585', subscribe:1, gameCount:3, shareCount:0, timestamp:'201912190949' nonceStr:'iekalsdiemksal', signature:'5d8wa2s5d2s78se5285s' headImgUrl:'' } }