Skip to content

Instantly share code, notes, and snippets.

@mygoare
Created January 2, 2020 14:08
Show Gist options
  • Save mygoare/9719f1f42448c2eedb050d1dedbe3dbf to your computer and use it in GitHub Desktop.
Save mygoare/9719f1f42448c2eedb050d1dedbe3dbf to your computer and use it in GitHub Desktop.
api sample
// 返回的接口结构 如下:
// 游戏Id不存在
const idDoNotExist =
{
error: 1,
msg: '游戏Id不存在'
}
// 游戏Id存在
// 存在于 bfban 数据中
const idExist =
{
error: 0,
data: {
// 是否存在于bfban系统数据中
exist: 1,
// origin ID(游戏ID)
originId: '',
bfban: {
// bfban 展示页面链接
showUrl: '',
// bfban 直接举报链接(免填Id)
reportUrl: '',
},
// 判定的状态
status: '',
// 判定的作弊方法
cheatMethods: "",
// 唯一UUID值
uId: '',
// origin personaId
originPersonaId: 23048920,
// origin userId
originUserId: 102902193123,
// origin头像链接
avatarLink: '',
// 记录创建时间
createDatetime: "2018-12-19T23:12:41.000Z",
// 记录最近更新时间
updateDatetime: "2019-01-14T21:52:45.000Z",
}
}
// 游戏Id存在
// 不存在于 bfban 数据中
const idDoNotExist = {
error: 0,
data: {
exist: 0,
originId: '',
bfban: {
showUrl: '',
reportUrl: '',
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment