url.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. const app = getApp()
  2. var host = app.globalData.debug ? 'http://brain.test.xsbanruo.com' : '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. update_user: '/bnl/user/update/v1',
  11. //获取用户信息
  12. get_user_info: '/bnl/user/get/v1',
  13. //脑力加油站
  14. receive_cell: '/bnl/user/receive_cell/v1',
  15. //领取邀请好友奖励
  16. recom_receive_cell: '/bnl/user/recom_receive_cell/v1',
  17. //领取好友对战奖励
  18. pk_receive_cell: '/bnl/user/pk_receive_cell/v1',
  19. //房间列表
  20. get_room_list: '/bnl/game/room/list/v1',
  21. //进入房间
  22. entry_room: '/bnl/game/room/play/v1',
  23. //查询房间信息
  24. get_room_info: '/bnl/game/room/get/v1',
  25. //查询房间动态信息
  26. get_room_dynamic_info: '/bnl/game/room/dynamic/v1',
  27. //查询题目
  28. get_room_question: '/bnl/game/room/question/v1',
  29. //回答
  30. get_room_answer: '/bnl/game/room/answer/v1',
  31. //房间排错卡
  32. room_exclude: '/bnl/game/room/use_wrong_card/v1',
  33. //获取排行榜
  34. get_room_ranking: '/bnl/game/room/rank/v1',
  35. //获取我的世界排行
  36. get_my_ranking: '/bnl/game/rank/my_rank/v1',
  37. //获取房间结果
  38. get_room_result: '/bnl/game/room/result/v1',
  39. //获取房间奖励排行榜
  40. get_room_bonus_ranking: '/bnl/game/room/allrank/v1',
  41. //充值下单
  42. recharge: '/bnl/order/recharge_cell/v1',
  43. //微信下单
  44. unified: '/bnl/pay/wx/unified/v1',
  45. //绑定手机
  46. bind_phone: '/bnl/user/bind_phone/v1',
  47. //钱包数据
  48. wallet: '/bnl/wallet/get/v1',
  49. //提现
  50. withdraw: '/bnl/wallet/add_withdraw/v1',
  51. //提现记录
  52. withdraw_list: '/bnl/wallet/list_withdraw/v1',
  53. //分享回调
  54. share: '/bnl/user/shared/v1',
  55. //随机题目
  56. question_random: '/bnl/question/random/v1',
  57. //开房间
  58. build_room: '/bnl/game/room/build/v1',
  59. //开房间下单
  60. build_room_order: '/bnl/order/recharge_room/v1',
  61. //微信下单
  62. wx_query: '/bnl/pay/wx/query/v1',
  63. //参加排位赛
  64. join_fragments: '/bnl/game/rank/play/v1',
  65. //世界排行
  66. all_fragments_record: '/bnl/game/rank/world_rank/list/v1',
  67. //好友排行
  68. friends_fragments_record: '/bnl/game/rank/friend_rank/list/v1',
  69. //加入群排行
  70. join_group_record: '/bnl/game/rank/group_user/add/v1',
  71. //群排行
  72. group_record: '/bnl/game/rank/group_rank/list/v1',
  73. //生成好友PK房间
  74. rebuild_pk: '/bnl/game/pk/replay/v1',
  75. //重新构建好友PK房间
  76. build_pk: '/bnl/game/pk/play/v1',
  77. //加入好友PK房间
  78. join_pk: '/bnl/game/pk/join/v1',
  79. //离开好友PK房间
  80. leave_pk: '/bnl/game/pk/leave/v1',
  81. //等待好友加入PK房间
  82. try_pk: '/bnl/game/pk/try/v1',
  83. //等待好友加入PK房间
  84. pk_question: '/bnl/game/pk/question/v1',
  85. //等待好友加入PK房间
  86. pk_answer: '/bnl/game/pk/answer/v1',
  87. //查询对手结果
  88. pk_other_answer: '/bnl/game/pk/other/answer/v1',
  89. //查询结果
  90. pk_result: '/bnl/game/pk/result/v1',
  91. //查询结果
  92. get_rank: '/bnl/game/rank/list/v1',
  93. //更换单个问题
  94. change_question: '/bnl/question/change/v1',
  95. //通知显示回调服务端
  96. notice_finish: '/bnl/msg/notice/finish/v1',
  97. //PK赛使用排错卡
  98. pk_exclude: '/bnl/game/pk/use_wrong_card/v1',
  99. //兑换排错卡
  100. get_exclude: '/bnl/user/exchange_wrong_card/v1',
  101. }