config.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. var params = require('./params.js');
  2. var storage = require('./storage.js');
  3. var api_web_url = params.api_web_url;
  4. var up_img_url = params.up_img_url;
  5. const gps_url = params.gps_url;
  6. const map_url = params.map_url;
  7. const api_admin_url = params.api_admin_url;
  8. const help_api_web_url = params.help_api_web_url;
  9. var config = {
  10. APP_VERSION: '1.4.2024091201',
  11. APP_DESC: '优化小程序',
  12. QQ_MAP_KEY: 'Q7DBZ-BQH65-MEMIO-Q7LEF-S43Z3-G6B34',
  13. // 腾讯地图api key
  14. QINIU_SITE: 'http://qiniu.uwenya.cc/',
  15. // 拉取图片地址
  16. QINIU_UPLOAD_SITE: 'https://upload.qiniup.com/',
  17. // 七牛上传地址
  18. API_QINIU_UP_IMG_TOKEN: up_img_url + '?r=qiniu/token',
  19. // 获取上传token
  20. API_INDEX_APP_CONFIG: '?r=index/app-config',
  21. API_USER_LOGIN: '/user/login',
  22. API_USER_INFO: '/user/info',
  23. API_USER_VERIFY_CODE: '/user/verify-code',
  24. API_USER_REGISTER: '/user/register',
  25. API_USER_CHANGE_PASSWORD: '/user/change-password',
  26. API_USER_GROUP_LIST: '/user/group-list',
  27. API_USER_USER_INFO: '?r=user/user-info',
  28. API_USER_FIRST_CHILDREN: '?r=user/first-children',
  29. API_RENEW_LIST: 'device/sim-renew-list',
  30. API_BATTERY_LIST: '/device/list',
  31. API_BATTERY_ICON_LIST: '/device/icon-list',
  32. API_BATTERY_TRANSFER: '?r=battery/transfer',
  33. API_BATTERY_BTYPE_LIST: '?r=battery/type-list',
  34. API_BATTERY_BATCH_EDIT: '?r=battery/batch-edit',
  35. API_BATTERY_SEARCH: '/device/group-search',
  36. API_BATTERY_SET_INFO: '/device/set-info',
  37. API_BATTERY_RELEASE_USER: '?r=battery/release-user',
  38. API_BATTERY_SEND_COMMAND: '/device/send-command',
  39. API_BATTERY_COMMAND_LIST: '/device/command-list',
  40. API_BATTERY_BIND: '/device/bind',
  41. API_BATTERY_UNBIND: '/device/unbind',
  42. API_BATTERY_MILLIST: '/device/milday-list',
  43. API_BMS_STATE: '/bms/state',
  44. API_BMS_SET: '/bms/set',
  45. API_BMS_READ: '/bms/read',
  46. API_BMS_CHARGING_MOS: '/bms/charging-mos',
  47. API_BMS_DISCHARGARGE_MOS: '/bms/discharge-mos',
  48. API_BMS_RESTART: '/bms/restart',
  49. API_BMS_CLOSE: '/bms/close',
  50. API_BMS_CURRENT_ZERO: '/bms/current-zero',
  51. API_BMS_ALARM: '/bms/alarm',
  52. API_CLIENT_GET_BY_PHONE: '?r=client/get-by-phone',
  53. API_ORDER_CHILDREN_LIST: '?r=order/children',
  54. API_ORDER_PAY_SUCCESS: '?r=order/pay-success',
  55. API_STATIS_TOTAL_STATIS: '?r=statis/total-statis',
  56. API_BATTERY_ON: '?r=battery/on',
  57. API_BATTERY_OFF: '?r=battery/off',
  58. API_STATIS_TOP: '/statis/top',
  59. API_AREA_STATIS: '/statis/area-statis',
  60. API_DEVICE_STATIS: '/statis/device-status',
  61. API_DEVICE_MONTH: '/statis/device-monthly',
  62. API_ALARM_ALL: '/device/alarm-all',
  63. API_INCOME_USER: '?r=statis/income-user',
  64. API_USER_REPLACE_STATUS_LIST: '?r=user/replace-status-list',
  65. API_BATTERY_REPLACE: '?r=battery/battery-replace',
  66. API_COMMISSION_MONEY: '?r=user/commission-money',
  67. API_COMMISSION_LIST: '?r=user/commission-list',
  68. API_COMMISSION_APPLY_BOSS: '?r=user/commission-apply-boss',
  69. API_GPS_TRACK: '/device/track',
  70. API_GPS_ALARM: '/device/alarm',
  71. API_GPS_INFO: '/device/gps-info',
  72. API_GPS_INFO: '/device/gps-info',
  73. API_ELE_QUANTITY: '/device/electric-quantity',
  74. API_SIM_INFO: '/sim/info',
  75. API_SIM_CREDIT: '/sim/credit',
  76. API_XCX_NOTICE: '/app/xcx-notice',
  77. API_XCX_SET_NOTICE: '/app/set-xcx-notice',
  78. API_FENCE_LIST: '/fence/list',
  79. API_FENCE_EDIT: '/fence/edit',
  80. API_FENCE_ADD: '/fence/add',
  81. API_FENCE_DEL: '/fence/del',
  82. API_REPORT_BLUETOOTH: '/bms/bluetooth-report',
  83. API_REPORT_BMS: '/bms/report-bms-data',
  84. API_GET_CTL: '/bms/get-ctl-data',
  85. API_QV_CONFIG: 'device/qv-config-content',
  86. //获取波特率
  87. API_GET_BPS: 'device/bps',
  88. //获取报警类型
  89. API_SMS_GET_SET: 'app/get-setting',
  90. //获取设备报警类型
  91. API_SMS_GET_DEVICE_SET: 'app/get-device-setting',
  92. //设置报警类型
  93. API_SMS_SAVE_SET: 'app/device-setting',
  94. //获取支付配置
  95. API_COIN_CONFIG: 'app/coin-product',
  96. //短信充值下单
  97. API_COIN_CREDIT: 'app/coin-credit',
  98. //短信报警数据
  99. API_ALARM_SUMMARY: 'app/alarm-summary',
  100. //开关短信报警状态
  101. API_CLOSE_ALARM: 'app/close-alarm',
  102. //短信报警记录
  103. API_RECORD_LIST: 'app/alarm-list',
  104. //获取金币
  105. API_GET_COIN: 'app/coin',
  106. //是否有可领用优惠券
  107. API_HAS_COUPON: 'app/has-coupon',
  108. //使用优惠券
  109. API_USE_COUPON: 'app/use-coupon',
  110. //充值记录
  111. API_GET_COIN_ORDER: 'app/coin-order',
  112. //流水钱包
  113. API_GET_COIN_HISTORY: 'app/coin-history',
  114. //展示总里程
  115. API_SHOW_MIL: 'device/distance',
  116. API_MAP_REGEO: map_url + 'geocode/regeo',
  117. API_IS_CHILD: '?r=user/is-child',
  118. API_CONTRACT_CONTENT: help_api_web_url + '?r=contract/content'
  119. };
  120. module.exports = config;