[关闭]
@lina 2021-07-02T11:19:44.000000Z 字数 4972 阅读 247

bingoHotel 小程序

BingoHotel


登录

请求URL

POST
/api/login

请求参数

  • code: [string] 微信登录code

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "club": null, // 这个待商讨
  6. "sessionToken": "01a2d7a83816154469bae1df4e5bf062",
  7. "userInfo": null,
  8. "signCount": 0,
  9. "miniProgramUserInfo": {
  10. "session_key": "8r0vG1KYdDcr9p7MFIJTVw==",
  11. "request_time": 1624956799,
  12. "session_token": "01a2d7a83816154469bae1df4e5bf062",
  13. "expires_in": 1625043199,
  14. "open_id": "oE3i75FkNMq57HO11R1_tN0rRpyA",
  15. "union_id": null,
  16. "updated_at": "2021-06-29 08:53:19",
  17. "created_at": "2021-06-29 08:53:19",
  18. "id": 3
  19. }
  20. }
  21. }

同步用户信息

请求URL

POST
/api/syncUserInfo

请求参数

  • iv: [string] 微信iv
  • encrypted_data: [string] 微信加密信息

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "id": 2,
  6. "open_id": "ouzYh5UM4zs2H0txbkxeus2-zDo8",
  7. "union_id": "oFaJb0avUid3IWgJK5lfDk-qlNBc",
  8. "session_key": "YaSomln6ayLW3CKP7cZdLQ==",
  9. "session_token": "720b2082b107f69ce58eb779953604a4",
  10. "expires_in": 1625039499,
  11. "request_time": 1624953099,
  12. "nick_name": "wgKeep",
  13. "avatars": "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erY4j5cJ4m3OvLouxVJU35du9ic8B4qezDkszeMj5n7bhaianwkpUADja2nhfXmgrPsw2wVmDM5lprQ/132",
  14. "province": "Shandong",
  15. "city": "Heze",
  16. "county": "China",
  17. "phone": null,
  18. "id_number": null,
  19. "name": null,
  20. "sex": 1,
  21. "created_at": "2021-06-29 07:06:26",
  22. "updated_at": "2021-06-29 08:00:19"
  23. }
  24. }

同步用户手机号

请求URL

POST
/api/syncUserPhone

请求参数

  • iv: [string] 微信iv
  • encrypted_data: [string] 微信加密信息

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "id": 2,
  6. "open_id": "ouzYh5UM4zs2H0txbkxeus2-zDo8",
  7. "union_id": "oFaJb0avUid3IWgJK5lfDk-qlNBc",
  8. "session_key": "YaSomln6ayLW3CKP7cZdLQ==",
  9. "session_token": "720b2082b107f69ce58eb779953604a4",
  10. "expires_in": 1625039499,
  11. "request_time": 1624953099,
  12. "nick_name": "wgKeep",
  13. "avatars": "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erY4j5cJ4m3OvLouxVJU35du9ic8B4qezDkszeMj5n7bhaianwkpUADja2nhfXmgrPsw2wVmDM5lprQ/132",
  14. "province": "Shandong",
  15. "city": "Heze",
  16. "county": "China",
  17. "phone": null,
  18. "id_number": null,
  19. "name": null,
  20. "sex": 1,
  21. "created_at": "2021-06-29 07:06:26",
  22. "updated_at": "2021-06-29 08:00:19"
  23. }
  24. }

权益列表

请求URL

get
/api/bingoHotel/benefit

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": [
  5. {
  6. "id": 3,
  7. "club_type_id": 1,
  8. "name": "权益名称1",
  9. "title": "副标题1",
  10. "primary_icon": "/uploads/2021-06//698801624516961.jpg",
  11. "subsidiary_icon": "/uploads/2021-06//698801624516961.jpg",
  12. "explain": "123",
  13. "status": 1,
  14. "created_at": "2021-06-24 17:07:13",
  15. "updated_at": "2021-06-24 17:07:13"
  16. },
  17. {
  18. "id": 5,
  19. "club_type_id": 1,
  20. "name": "权益2",
  21. "title": "权益2",
  22. "primary_icon": "/uploads/2021-06//638511624863329.jpg",
  23. "subsidiary_icon": "/uploads/2021-06//879771624863332.jpg",
  24. "explain": "权益2",
  25. "status": 1,
  26. "created_at": "2021-06-28 14:55:33",
  27. "updated_at": "2021-06-28 14:55:33"
  28. }
  29. ]
  30. }

酒店列表

请求URL

get
/api/bingoHotel/hotel

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": [
  5. {
  6. "id": 1,
  7. "club_type_id": 1,
  8. "name": "汉庭",
  9. "club_rank": "白金1",
  10. "icon": "/uploads/2021-06//267531624640803.jpg",
  11. "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>",
  12. "use_explain": "<p style=\"text-align:center;\"><strong>使用说明</strong></p>",
  13. "user_agreement_file_name": "新建DOCX 文档.docx",
  14. "user_agreement": "/uploads/2021-06//550051624806003.docx",
  15. "privacy_policy_file_name": "新建DOCX 文档.pdf",
  16. "privacy_policy": "/uploads/2021-06//153501624806544.pdf",
  17. "link": "http://baidu.com",
  18. "status": 1,
  19. "created_at": "2021-06-24 14:49:49",
  20. "updated_at": "2021-06-27 23:09:05"
  21. },
  22. {
  23. "id": 6,
  24. "club_type_id": 1,
  25. "name": "新的酒店",
  26. "club_rank": "钻石3",
  27. "icon": "/uploads/2021-06//498441624764754.jpg",
  28. "benefit_explain": "<p>权益</p>",
  29. "use_explain": "<p>使用</p>",
  30. "user_agreement_file_name": "新建DOCX 文档.pdf",
  31. "user_agreement": "/uploads/2021-06//420831624806530.pdf",
  32. "privacy_policy_file_name": "新建DOCX 文档.docx",
  33. "privacy_policy": "/uploads/2021-06//191601624805954.pdf",
  34. "link": "http://blog.iconmen.xyz",
  35. "status": 1,
  36. "created_at": "2021-06-27 11:33:00",
  37. "updated_at": "2021-06-27 23:08:51"
  38. }
  39. ]
  40. }

banner列表

请求URL

get
/api/bingoHotel/banner

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": [
  5. {
  6. "id": 6,
  7. "club_type_id": 1,
  8. "image_url": "/uploads/2021-06//212721624863529.jpg",
  9. "link": "http://blog.iconmen.xyz",
  10. "status": 1,
  11. "jump_status": 1,
  12. "created_at": "2021-06-26 00:49:33",
  13. "updated_at": "2021-06-28 14:58:50"
  14. }
  15. ]
  16. }

支付

购买会员

请求URL

post
/api/bingoHotel/buyClub

请求参数

  • username: [string] 姓名

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "appId": "wx131f8d0a308b2270",
  6. "timeStamp": "1625224516",
  7. "nonceStr": "60def5447f012",
  8. "package": "prepay_id=wx0219151645532261def7a5535256080000",
  9. "signType": "MD5",
  10. "paySign": "B424486D57FA7D56FDCBDA519A343CD2"
  11. }
  12. }

激活码激活会员

请求URL

post
api/bingoHotel/activationBindClub

请求参数

  • username: [string] 姓名
  • activation_code: [string] 激活码

响应

  1. {
  2. "status": 0,
  3. "msg": "绑定成功",
  4. "data": null
  5. }

续费会员

请求URL

post
/api/bingoHotel/renewClub

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "appId": "wx131f8d0a308b2270",
  6. "timeStamp": "1625212167",
  7. "nonceStr": "60dec507062a1",
  8. "package": "prepay_id=wx021549268745974634a2a4a8cdb3cf0000",
  9. "signType": "MD5",
  10. "paySign": "C776E6EFF15B79ADB6A9E173CEA6DD87"
  11. }
  12. }

激活码续费会员

请求URL

post
/api/bingoHotel/activationRenewClub

响应

  1. {
  2. "status": 0,
  3. "msg": "续费成功",
  4. "data": null
  5. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注