config - 副本.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. var params = require('./params.js');
  2. var api_web_url = params.api_web_url;
  3. var up_img_url = params.up_img_url;
  4. const gps_url = params.gps_url;
  5. var config = {
  6. APP_VERSION: '4.1.2024040101',
  7. APP_VERSION_DESC: '优化小程序',
  8. QQ_MAP_KEY: 'Q7DBZ-BQH65-MEMIO-Q7LEF-S43Z3-G6B34',
  9. // 腾讯地图api key
  10. QINIU_SITE: 'https://qiniu.bms16.com/',
  11. // 拉取图片地址
  12. QINIU_UPLOAD_SITE: 'https://up-z2.qiniup.com/',
  13. // 七牛上传地址
  14. API_QINIU_UP_IMG_TOKEN: up_img_url + '?r=qiniu/token-v2',
  15. // 获取上传token
  16. API_GET_OPEN_ID: api_web_url + '?r=user/get-open-id',
  17. API_REPORT_USER_INFO: api_web_url + '?r=user/report-user-info',
  18. API_USER_VERIFY_CODE: api_web_url + '?r=user/verify-code',
  19. API_USER_LOGIN: api_web_url + '?r=user/login',
  20. API_USER_LOGIN_V2: api_web_url + '?r=user/login-app',
  21. API_USER_LOGIN_ALI: api_web_url + '?r=user/login-ali',
  22. API_USER_INFO: api_web_url + '?r=user/info',
  23. API_USER_PAY: api_web_url + '?r=user/pay',
  24. API_USER_BLUETOOTH_PAY: api_web_url + '?r=cabinet/bluetooth-hire',
  25. API_USER_AUTH_IDENTITY: api_web_url + '?r=user/auth-identity',
  26. API_USER_RETURN_APPLY: api_web_url + '?r=user/return-apply',
  27. API_USER_ORDER_LIST: api_web_url + '?r=user/order-list',
  28. API_USER_REFUND_LIST: api_web_url + '?r=user/refund-list',
  29. API_USER_CONTRACT_LIST: api_web_url + '?r=user/contract-list',
  30. //合同每个订单使用
  31. API_ORDER_CONTRACT: api_web_url + '?r=user/order-contract',
  32. API_SHOP_NEAR_LIST: api_web_url + '?r=shop/near-list',
  33. API_SHOP_INFO: api_web_url + '?r=shop/shop-info',
  34. API_USER_SHOP_INFO: api_web_url + '?r=user/shop-info',
  35. API_INDEX_SCAN: api_web_url + '?r=index/scan',
  36. API_INDEX_APP_CONFIG: api_web_url + '?r=index/app-config',
  37. API_BATTERY_LIST: api_web_url + '?r=battery/list',
  38. API_BATTERY_ALL_WARN: api_web_url + '?r=battery/all-battery-warn-list',
  39. API_BATTERY_SET_ALARM_PUSH: api_web_url + '?r=battery/set-alarm-push',
  40. API_BATTERY_GET_ALARM_STATUS: api_web_url + '?r=battery/get-alarm-status',
  41. API_BATTERY_ON_OFF: api_web_url + '?r=battery/on-off',
  42. API_BATTERY_USER_EXCHANGE: api_web_url + '?r=battery/user-exchange',
  43. API_QV_CONFIG: api_web_url + '?r=battery/get-qv-config-content',
  44. API_FORMID_REPORT: api_web_url + '?r=formid/report',
  45. API_CONTRACT_TITLE: api_web_url + '?r=contract/titles',
  46. API_CONTRACT_GET: api_web_url + '?r=contract/get',
  47. API_ACTIVITY_GET: api_web_url + '?r=shop/activity-get',
  48. API_TOP_ACTIVITY_LIST: api_web_url + '?r=shop/activity-list',
  49. API_REPAIR_LIST: api_web_url + '?r=shop/repair-type-list',
  50. API_REPAIR_APPLY: api_web_url + '?r=shop/repair-apply',
  51. //充电柜
  52. API_CHARGE_INFO: api_web_url + '?r=charge/scan',
  53. API_CHARGE_LIST: api_web_url + '?r=charge/list',
  54. API_CHARGE_POP: api_web_url + '?r=charge/charge-pop',
  55. API_CHARGE_PAY: api_web_url + '?r=charge/pay',
  56. API_CANCEL_CHARGE_PAY: api_web_url + '?r=charge/cancel-pay',
  57. API_CHARGE_STATUS: api_web_url + '?r=charge/charge-status',
  58. API_CHARGE_EXTRACT: api_web_url + '?r=charge/extract',
  59. //取电
  60. API_CHARGE_EXTRACT_STATUS: api_web_url + '?r=charge/extract-status',
  61. API_CHARGE_EXTRACT_EX_STATUS: api_web_url + '?r=charge/exchange-status',
  62. API_CHARGE_EXTRACT_CANCEL: api_web_url + '?r=charge/extract-cancel',
  63. API_CANCEL_CHARGE_EX_PAY: api_web_url + '?r=charge/exchange-pay-cancel',
  64. API_CHARGE_HISTORY: api_web_url + '?r=charge/charge-history',
  65. API_CHARGE_EXCHANGE: api_web_url + '?r=charge/charge-exchange',
  66. // API_CANCEL_CHARGE_EXTRACT_PAY:api_web_url + '?r=charge/extract-cancel',
  67. // 换电柜
  68. API_CABINET_LIST: api_web_url + '?r=cabinet/list',
  69. API_CABINET_INFO: api_web_url + '?r=cabinet/info',
  70. API_CABINET_USER_BATTERY_LIST: api_web_url + '?r=cabinet/user-battery-list',
  71. API_CABINET_CHANGE_BATTERY: api_web_url + '?r=cabinet/change-battery',
  72. API_CABINET_CHANGE_BATTERY2: api_web_url + '?r=cabinet/change-battery-v2',
  73. API_CABINET_CHANGE_BATTERY_STATUS: api_web_url + '?r=cabinet/change-battery-status',
  74. API_CABINET_GET_HIRE_BATTERY: api_web_url + '?r=cabinet/get-hire-battery',
  75. API_CABINET_GET_HIRE_BATTERY2: api_web_url + '?r=cabinet/get-hire-battery-v2',
  76. API_CABINET_RETURN_HIRE_BATTERYI: api_web_url + '?r=cabinet/rt-hire-battery',
  77. API_CABINET_GET_RETURN_HIRE_STATUS: api_web_url + '?r=cabinet/get-rt-hire-status',
  78. //机柜蓝牙
  79. API_CABINET_BLUETOOTH_INFO: api_web_url + '?r=cabinet/bluetooth-report',
  80. API_CABINET_BLUETOOTH_HIRE: api_web_url + '?r=cabinet/bluetooth-hire-success',
  81. API_CABINET_BLUETOOTH_EXCHANGE: api_web_url + '?r=cabinet/bluetooth-exchange',
  82. API_CABINET_BLUETOOTH_RETURN: api_web_url + '?r=cabinet/bluetooth-return',
  83. API_CABINET_BLUETOOTH_EXCHANGE_SUCCESS: api_web_url + '?r=cabinet/bluetooth-exchange-success',
  84. API_CABINET_BLUETOOTH_RETURN_SUCCESS: api_web_url + '?r=cabinet/bluetooth-return-success',
  85. //上报机柜日志
  86. API_CABINET_BLUETOOTH_LOG: api_web_url + '?r=cabinet/bl-up',
  87. // gps 相关接口
  88. API_GPS_ALARM_LIST: gps_url + '?r=index/alarm',
  89. API_GPS_TRACK_LIST: gps_url + '?r=index/track',
  90. API_GPS_LOCATION: gps_url + '?r=index/location',
  91. API_COMMISSION_APPLY: api_web_url + '?r=shop/commission-apply',
  92. API_COMMISSION_PROFIT: api_web_url + '?r=shop/commission-profit',
  93. API_USER_EXCHANGE: api_web_url + '?r=battery/user-exchange',
  94. API_EXCHANGE_INFO: api_web_url + '?r=battery/exchange-info',
  95. API_REPORT_BMS: api_web_url + '?r=bms/report-bms-data',
  96. API_GET_CTL: api_web_url + '?r=bms/get-ctl-data',
  97. //上报信息
  98. API_PUSH_INFO: api_web_url + '?r=user/push-info',
  99. // 全局常量定义
  100. STORAGE_OPEN_ID: 'storage_open_id',
  101. STORAGE_ALARM_LIST_KEY: 'storage_alarm_list_key',
  102. //获取电量
  103. API_ELE_QUANTITY: api_web_url + '?r=battery/electric-quantity',
  104. API_QV_CONFIG: api_web_url + '?r=battery/qv-config-content',
  105. //获取设备报警类型
  106. API_SMS_GET_DEVICE_SET: api_web_url + '?r=bms-warning/get-device-setting',
  107. //设置报警类型
  108. API_SMS_SAVE_SET: api_web_url + '?r=bms-warning/device-setting',
  109. //获取支付配置
  110. API_COIN_CONFIG: api_web_url + '?r=bms-warning/coin-product',
  111. //短信充值下单
  112. API_COIN_CREDIT: api_web_url + '?r=bms-warning/coin-credit',
  113. //短信报警数据
  114. API_ALARM_SUMMARY: api_web_url + '?r=bms-warning/alarm-summary',
  115. //开关短信报警状态
  116. API_CLOSE_ALARM: api_web_url + '?r=bms-warning/close-alarm',
  117. //短信报警记录
  118. API_RECORD_LIST: api_web_url + '?r=bms-warning/alarm-list',
  119. //获取金币
  120. API_GET_COIN: api_web_url + '?r=bms-warning/coin',
  121. //是否有可领用优惠券
  122. API_HAS_COUPON: api_web_url + '?r=bms-warning/has-coupon',
  123. //使用优惠券
  124. API_USE_COUPON: api_web_url + '?r=bms-warning/use-coupon',
  125. //充值记录
  126. API_GET_COIN_ORDER: api_web_url + '?r=bms-warning/coin-order',
  127. //流水钱包
  128. API_GET_COIN_HISTORY: api_web_url + '?r=bms-warning/coin-history',
  129. //开通换电功能
  130. API_EXCHANGE_FUNCTION: api_web_url + '?r=battery/pay-exchange-func',
  131. //取消支付门店换电换电
  132. API_CANCEL_SHOP_EX: api_web_url + '?r=battery/cancel-user-exchange',
  133. //取消租赁支付订单
  134. API_CANCEL_PAY: api_web_url + '?r=user/cancel-pay',
  135. //换电取消支付
  136. API_CANCEL_EX_PAY: api_web_url + '?r=cabinet/cancel-change-battery',
  137. //柜子下可用电池列表
  138. API_CABINET_BATTERY_LIST: api_web_url + '?r=cabinet/get-hire-battery-list',
  139. //优惠活动
  140. API_PACKAGE_ACT_LIST: api_web_url + '?r=package/activity-list',
  141. API_PACKAGE_PAY: api_web_url + '?r=package/pay',
  142. API_PACKAGE_LIST: api_web_url + '?r=package/list',
  143. API_PACKAGE_ORDER_QUERY: api_web_url + '?r=package/order-query',
  144. //个人推广活动信息
  145. API_PROMOTE_INFO: api_web_url + '?r=promote/info',
  146. //用户积分列表
  147. API_PROMOTE_SCORE_LIST: api_web_url + '?r=promote/score-list',
  148. //获取提现配置
  149. API_PROMOTE_WITHDRAW_SET: api_web_url + '?r=promote/withdraw-setting',
  150. //申请提现
  151. API_PROMOTE_APPLY_WITHDRAW: api_web_url + '?r=promote/withdraw',
  152. //邀请列表
  153. API_PROMOTE_INVITE_LIST: api_web_url + '?r=promote/invite-list',
  154. //绑定分享人
  155. API_PROMOTE_BIND: api_web_url + '?r=promote/bind',
  156. //获取有优惠券可领取的活动列表
  157. API_ACTIVITY_LIST: api_web_url + '?r=voucher/activity-list',
  158. //活动下优惠券列表
  159. API_VOUCHER_LIST: api_web_url + '?r=voucher/list',
  160. //优惠券一键领取
  161. API_GET_VOUCHER: api_web_url + '?r=voucher/get-voucher',
  162. //用户优惠券
  163. API_VOUCHER_USER: api_web_url + '?r=voucher/my-voucher',
  164. //微信登录
  165. API_WX_PHONE_LOGIN: api_web_url + '?r=user/wx-phone-login',
  166. //邀请码
  167. API_BATTERY_CONFIG_INFO: api_web_url + '?r=index/battery-config-info',
  168. //扫码车
  169. API_SCAN_LICENSE_PLATE_NUMBER: api_web_url + '?r=index/scan-license-plate-number',
  170. //***暂存功能模块***//
  171. //申请存储电池
  172. API_STASH_STASH: api_web_url + '?r=stash/stash',
  173. API_STASH_LIST: api_web_url + '?r=stash/list',
  174. API_STASH_EXTRACT: api_web_url + '?r=stash/extract',
  175. API_STORE_STATUS: api_web_url + '?r=stash/store-status',
  176. API_EXTRACT_STATUS: api_web_url + '?r=stash/extract-status',
  177. API_SHOP_PAY: api_web_url + '?r=stash/shop-pay',
  178. API_CANCEL_EXTRACT_PAY: api_web_url + '?r=stash/cancel-extract',
  179. //代扣签约
  180. API_WITHHOLD_BEGIN: api_web_url + '?r=withholding/begin',
  181. //去开通免押
  182. API_ALI_FREEZE: api_web_url + '?r=user/ali-freeze',
  183. //查询是否开通免押状态
  184. API_ALI_FREEZE_STATUS: api_web_url + '?r=user/ali-freeze-status',
  185. // 短租
  186. API_SHOP_ADMIN_AREA_TREE: api_web_url + '?r=shop/admin-area-tree',
  187. API_SHOP_AREA_CODE_TO_ADMIN: api_web_url + '?r=shop/area-code-to-admin',
  188. //商城
  189. API_AREA_CHILDREN: api_web_url + '?r=area/children',
  190. API_SET_JOB_INFO: api_web_url + '?r=user/set-job-info',
  191. //短租附近门店和推荐车辆
  192. API_SHOP_NEAR_LIST_V2: api_web_url + '?r=shop/short-hire-near-list-v2',
  193. //门店可租车型
  194. API_SHOP_CAR_MODEL_ACTIVITY_LIST: api_web_url + '?r=shop/short-shop-car-model-activity-list',
  195. //门店可租车型
  196. API_SHOP_VEHICLE_BUSINESS_TYPE: api_web_url + '?r=shop/vehicle-battery-business-type',
  197. //商城租车租电买车套餐列表
  198. API_SHOP_GET_LIST_BY_SERVICE_TYPE: api_web_url + '?r=vehicle-battery-package/get-list-by-service-type',
  199. // 支付
  200. API_USER_VEHICLE_BATTERY_PACKAGE_PAY: api_web_url + '?r=user-vehicle-battery-package/pay',
  201. //取消支付
  202. API_USER_VEHICLE_BATTERY_PACKAGE_PAY_CANCEL: api_web_url + '?r=user-vehicle-battery-package/pay-cancel',
  203. //订单列表
  204. API_USER_VEHICLE_BATTERY_ORDER_LIST: api_web_url + '?r=user-vehicle-battery-package/order-list',
  205. //扫码提取
  206. API_USER_VEHICLE_BATTERY_EXTRACT_ORDER: api_web_url + '?r=user-vehicle-battery-package/extract-order',
  207. //申请退款
  208. API_USER_VEHICLE_BATTERY_REFUND_ORDER: api_web_url + '?r=user-vehicle-battery-package/refund-order',
  209. API_USER_ADDRESS_LIST: api_web_url + '?r=user-address/list',
  210. API_GET_ALL_AREA_LIST: api_web_url + '?r=index/get-all-area-list',
  211. //地址
  212. API_USER_ADDRESS_ADD: api_web_url + '?r=user-address/add',
  213. API_USER_ADDRESS_DEL: api_web_url + '?r=user-address/del',
  214. //
  215. API_ADVANCE_CANCLE_HIRE: api_web_url + '?r=advance-hire/cancel-hire',
  216. API_ADVANCE_CONFIG: api_web_url + '?r=advance-hire/config',
  217. API_ADVANCE_HIRE: api_web_url + '?r=advance-hire/advance-hire',
  218. API_ADVANCE_HIRE_CANCEL: api_web_url + '?r=advance-hire/cancel-hire',
  219. API_ADVANCE_EXTRACT: api_web_url + '?r=advance-hire/extract',
  220. API_ADVANCE_EXTRACT_ORDER_LIST: api_web_url + '?r=advance-hire/no-extract-order-list',
  221. //扫码绑定用户支付宝账号关系
  222. API_SHOP_ALI_COMMISSION_PROFIT: api_web_url + '?r=shop/ali-commission-profit',
  223. API_VEHICLE_BATTERY_PACKAGE_GET_LIST_BY_ORDERSN: api_web_url + '?r=vehicle-battery-package/get-list-by-ordersn',
  224. API_USER_VEHICLE_BATTERY_PACKAGE_RENEWAL: api_web_url + '?r=user-vehicle-battery-package/renewal',
  225. };
  226. module.exports = config;