url.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. const app = getApp()
  2. var host = app.globalData.debug ? 'http://120.79.211.173:7900' : 'https://brain.xsbanruo.com'
  3. module.exports = {
  4. host: host,
  5. //测试支付
  6. testPay: '/bnl/pay/wx/test/v1',
  7. //登录
  8. login: '/bnl/user/sign/v1',
  9. //获取用户信息
  10. get_user_info: '/bnl/user/get/v1',
  11. //脑力加油站
  12. receive_cell: '/bnl/user/receive_cell/v1',
  13. //房间列表
  14. get_room_list: '/bnl/game/room/list/v1',
  15. //进入房间
  16. entry_room: '/bnl/game/room/play/v1',
  17. //查询房间信息
  18. get_room_info: '/bnl/game/room/get/v1',
  19. //查询房间动态信息
  20. get_room_dynamic_info: '/bnl/game/room/dynamic/v1',
  21. //查询题目
  22. get_room_question: '/bnl/game/room/question/v1',
  23. //回答
  24. get_room_answer: '/bnl/game/room/answer/v1',
  25. //获取排行榜
  26. get_room_ranking: '/bnl/game/room/rank/v1',
  27. //获取我的世界排行
  28. get_my_ranking: '/bnl/game/rank/my_rank/v1',
  29. //获取房间结果
  30. get_room_result: '/bnl/game/room/result/v1',
  31. //获取房间奖励排行榜
  32. get_room_bonus_ranking: '/bnl/game/room/allrank/v1',
  33. //充值下单
  34. recharge: '/bnl/order/recharge_cell/v1',
  35. //微信下单
  36. unified: '/bnl/pay/wx/unified/v1',
  37. //绑定手机
  38. bind_phone: '/bnl/user/bind_phone/v1',
  39. //钱包数据
  40. wallet: '/bnl/wallet/get/v1',
  41. //提现
  42. withdraw: '/bnl/wallet/add_withdraw/v1',
  43. //提现记录
  44. withdraw_list: '/bnl/wallet/list_withdraw/v1',
  45. //分享回调
  46. share: '/bnl/user/shared/v1',
  47. //随机题目
  48. question_random: '/bnl/question/random/v1',
  49. //开房间
  50. build_room: '/bnl/game/room/build/v1',
  51. //开房间下单
  52. build_room_order: '/bnl/order/recharge_room/v1',
  53. //微信下单
  54. wx_query: '/bnl/pay/wx/query/v1',
  55. //参加排位赛
  56. join_fragments: '/bnl/game/rank/play/v1',
  57. //世界排行
  58. all_fragments_record: '/bnl/game/rank/world_rank/list/v1',
  59. //好友排行
  60. friends_fragments_record: '/bnl/game/rank/friend_rank/list/v1',
  61. //加入群排行
  62. join_group_record: '/bnl/game/rank/group_user/add/v1',
  63. //群排行
  64. group_record: '/bnl/game/rank/group_rank/list/v1',
  65. //生成好友PK房间
  66. rebuild_pk: '/bnl/game/pk/replay/v1',
  67. //重新构建好友PK房间
  68. build_pk: '/bnl/game/pk/play/v1',
  69. //加入好友PK房间
  70. join_pk: '/bnl/game/pk/join/v1',
  71. //离开好友PK房间
  72. leave_pk: '/bnl/game/pk/leave/v1',
  73. //等待好友加入PK房间
  74. try_pk: '/bnl/game/pk/try/v1',
  75. //等待好友加入PK房间
  76. pk_question: '/bnl/game/pk/question/v1',
  77. //等待好友加入PK房间
  78. pk_answer: '/bnl/game/pk/answer/v1',
  79. //查询对手结果
  80. pk_other_answer: '/bnl/game/pk/other/answer/v1',
  81. //查询结果
  82. pk_result: '/bnl/game/pk/result/v1',
  83. //查询结果
  84. get_rank: '/bnl/game/rank/get/v1',
  85. //更换单个问题
  86. change_question: '/bnl/question/change/v1',
  87. }