@lina
2021-07-02T11:19:44.000000Z
字数 4972
阅读 247
BingoHotel
请求URL
POST
/api/login
请求参数
code
: [string] 微信登录code
响应
{
"status": 0,
"msg": "",
"data": {
"club": null, // 这个待商讨
"sessionToken": "01a2d7a83816154469bae1df4e5bf062",
"userInfo": null,
"signCount": 0,
"miniProgramUserInfo": {
"session_key": "8r0vG1KYdDcr9p7MFIJTVw==",
"request_time": 1624956799,
"session_token": "01a2d7a83816154469bae1df4e5bf062",
"expires_in": 1625043199,
"open_id": "oE3i75FkNMq57HO11R1_tN0rRpyA",
"union_id": null,
"updated_at": "2021-06-29 08:53:19",
"created_at": "2021-06-29 08:53:19",
"id": 3
}
}
}
请求URL
POST
/api/syncUserInfo
请求参数
iv
: [string] 微信ivencrypted_data
: [string] 微信加密信息
响应
{
"status": 0,
"msg": "",
"data": {
"id": 2,
"open_id": "ouzYh5UM4zs2H0txbkxeus2-zDo8",
"union_id": "oFaJb0avUid3IWgJK5lfDk-qlNBc",
"session_key": "YaSomln6ayLW3CKP7cZdLQ==",
"session_token": "720b2082b107f69ce58eb779953604a4",
"expires_in": 1625039499,
"request_time": 1624953099,
"nick_name": "wgKeep",
"avatars": "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erY4j5cJ4m3OvLouxVJU35du9ic8B4qezDkszeMj5n7bhaianwkpUADja2nhfXmgrPsw2wVmDM5lprQ/132",
"province": "Shandong",
"city": "Heze",
"county": "China",
"phone": null,
"id_number": null,
"name": null,
"sex": 1,
"created_at": "2021-06-29 07:06:26",
"updated_at": "2021-06-29 08:00:19"
}
}
请求URL
POST
/api/syncUserPhone
请求参数
iv
: [string] 微信ivencrypted_data
: [string] 微信加密信息
响应
{
"status": 0,
"msg": "",
"data": {
"id": 2,
"open_id": "ouzYh5UM4zs2H0txbkxeus2-zDo8",
"union_id": "oFaJb0avUid3IWgJK5lfDk-qlNBc",
"session_key": "YaSomln6ayLW3CKP7cZdLQ==",
"session_token": "720b2082b107f69ce58eb779953604a4",
"expires_in": 1625039499,
"request_time": 1624953099,
"nick_name": "wgKeep",
"avatars": "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erY4j5cJ4m3OvLouxVJU35du9ic8B4qezDkszeMj5n7bhaianwkpUADja2nhfXmgrPsw2wVmDM5lprQ/132",
"province": "Shandong",
"city": "Heze",
"county": "China",
"phone": null,
"id_number": null,
"name": null,
"sex": 1,
"created_at": "2021-06-29 07:06:26",
"updated_at": "2021-06-29 08:00:19"
}
}
请求URL
get
/api/bingoHotel/benefit
响应
{
"status": 0,
"msg": "",
"data": [
{
"id": 3,
"club_type_id": 1,
"name": "权益名称1",
"title": "副标题1",
"primary_icon": "/uploads/2021-06//698801624516961.jpg",
"subsidiary_icon": "/uploads/2021-06//698801624516961.jpg",
"explain": "123",
"status": 1,
"created_at": "2021-06-24 17:07:13",
"updated_at": "2021-06-24 17:07:13"
},
{
"id": 5,
"club_type_id": 1,
"name": "权益2",
"title": "权益2",
"primary_icon": "/uploads/2021-06//638511624863329.jpg",
"subsidiary_icon": "/uploads/2021-06//879771624863332.jpg",
"explain": "权益2",
"status": 1,
"created_at": "2021-06-28 14:55:33",
"updated_at": "2021-06-28 14:55:33"
}
]
}
请求URL
get
/api/bingoHotel/hotel
响应
{
"status": 0,
"msg": "",
"data": [
{
"id": 1,
"club_type_id": 1,
"name": "汉庭",
"club_rank": "白金1",
"icon": "/uploads/2021-06//267531624640803.jpg",
"benefit_explain": "<p style=\"text-align:center;\" size=\"0\" _root=\"undefined\" __ownerID=\"undefined\" __hash=\"undefined\" __altered=\"false\"><strong>dqwdqwefwefasdqwdqwdwsdqwd</strong></p><p></p><div class=\"media-wrap image-wrap align-center\" style=\"text-align:center\"><img src=\"http://bingo.admin.guangying.link/uploads/2021-06//597971624685781.jpg\" width=\"100px\" height=\"100px\" style=\"width:100px;height:100px\"/></div><p></p>",
"use_explain": "<p style=\"text-align:center;\"><strong>使用说明</strong></p>",
"user_agreement_file_name": "新建DOCX 文档.docx",
"user_agreement": "/uploads/2021-06//550051624806003.docx",
"privacy_policy_file_name": "新建DOCX 文档.pdf",
"privacy_policy": "/uploads/2021-06//153501624806544.pdf",
"link": "http://baidu.com",
"status": 1,
"created_at": "2021-06-24 14:49:49",
"updated_at": "2021-06-27 23:09:05"
},
{
"id": 6,
"club_type_id": 1,
"name": "新的酒店",
"club_rank": "钻石3",
"icon": "/uploads/2021-06//498441624764754.jpg",
"benefit_explain": "<p>权益</p>",
"use_explain": "<p>使用</p>",
"user_agreement_file_name": "新建DOCX 文档.pdf",
"user_agreement": "/uploads/2021-06//420831624806530.pdf",
"privacy_policy_file_name": "新建DOCX 文档.docx",
"privacy_policy": "/uploads/2021-06//191601624805954.pdf",
"link": "http://blog.iconmen.xyz",
"status": 1,
"created_at": "2021-06-27 11:33:00",
"updated_at": "2021-06-27 23:08:51"
}
]
}
请求URL
get
/api/bingoHotel/banner
响应
{
"status": 0,
"msg": "",
"data": [
{
"id": 6,
"club_type_id": 1,
"image_url": "/uploads/2021-06//212721624863529.jpg",
"link": "http://blog.iconmen.xyz",
"status": 1,
"jump_status": 1,
"created_at": "2021-06-26 00:49:33",
"updated_at": "2021-06-28 14:58:50"
}
]
}
请求URL
post
/api/bingoHotel/buyClub
请求参数
username
: [string] 姓名
响应
{
"status": 0,
"msg": "",
"data": {
"appId": "wx131f8d0a308b2270",
"timeStamp": "1625224516",
"nonceStr": "60def5447f012",
"package": "prepay_id=wx0219151645532261def7a5535256080000",
"signType": "MD5",
"paySign": "B424486D57FA7D56FDCBDA519A343CD2"
}
}
请求URL
post
api/bingoHotel/activationBindClub
请求参数
username
: [string] 姓名activation_code
: [string] 激活码
响应
{
"status": 0,
"msg": "绑定成功",
"data": null
}
请求URL
post
/api/bingoHotel/renewClub
响应
{
"status": 0,
"msg": "",
"data": {
"appId": "wx131f8d0a308b2270",
"timeStamp": "1625212167",
"nonceStr": "60dec507062a1",
"package": "prepay_id=wx021549268745974634a2a4a8cdb3cf0000",
"signType": "MD5",
"paySign": "C776E6EFF15B79ADB6A9E173CEA6DD87"
}
}
请求URL
post
/api/bingoHotel/activationRenewClub
响应
{
"status": 0,
"msg": "续费成功",
"data": null
}