You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

87 line
2.6 KiB

  1. /**
  2. * 小程序配置文件
  3. */
  4. // 此处主机域名修改成腾讯云解决方案分配的域名
  5. var host = 'http://39.97.167.65/autoSR/api'; // 测试站
  6. var hosts = 'http://39.97.167.65/'; // 测试站
  7. // var host = 'http://192.168.31.134:9999/autoSR/api'; // 佳豪
  8. // var hosts = 'http://192.168.31.134:9999/'; // 佳豪
  9. // var host = 'http://8kdmng.natappfree.cc/autoSR/api'; // 佳豪
  10. // var hosts = 'http://8kdmng.natappfree.cc/'; // 佳豪
  11. var iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式
  12. var config = {
  13. service: {
  14. host,
  15. iMServiceHost,
  16. getStage:`${host}/customer/getStage`,
  17. //验证toen
  18. verify:`${host}/user/verify`,
  19. //登录
  20. login: `${hosts}auth/oauth/token`,
  21. logout: `${hosts}auth/token/logout`,
  22. //获取用户信息
  23. getUser: `${host}/user/getUser`,
  24. //获取权限
  25. getMenu:`${hosts}admin/menu/getMenu`,
  26. //发送验证码
  27. sendCode:`${hosts}admin/mobile`,
  28. //验证码校验
  29. plogin:`${hosts}auth/mobile/token/sms`,
  30. //忘记密码
  31. forgotPassword:`${hosts}admin/user/forgotPassword`,
  32. //修改密码
  33. updatePassword: `${host}/user/resetPwd`,
  34. //修改用户信息
  35. upload: `${host}/user/update`,
  36. // 上传头像
  37. uploadHeadImg:`${host}/user/uploadHeadPortrait`,
  38. //分点学习标签
  39. findSelectedLabel:`${host}/addtodigest/findSelectedLabel`,
  40. //获取全部学习
  41. findAllZATD:`${host}/addtodigest/findAllZATD`,
  42. //查询点赞列表
  43. likegetLike:`${host}/like/getLike`,
  44. // 获取评论
  45. cmmentList:`${host}/comment/list`,
  46. // 新增评论
  47. saveCmment:`${host}/comment/saveCmment`,
  48. // 新增文件评论
  49. saveCmmentUpload:`${host}/comment/upload`,
  50. // 点赞
  51. saveLike:`${host}/like/saveLike`,
  52. // 取消点赞
  53. cancelLike:`${host}/like/cancelLike`,
  54. //同音转译接口3
  55. getCorpusAnal: `${host}/corpus/splicAudioPlay`,
  56. //转写内容获取快进时间是第几个文件
  57. fastForward:`${host}/corpus/fastForward`,
  58. //标记顾问
  59. markConsultant:`${host}/corpus/markConsultant`,
  60. //同音转译接口
  61. getSpeechAnalysis: `${host}/cms/mobile/getBytargetId`,
  62. //同音转译接口2
  63. getCorpusAnalysis: `${host}/corpus/audioPlay`,
  64. //查询设备电量
  65. findElectricity:`${host}/equipment/findElectricity`,
  66. //首页设备查询
  67. findEquipmentState:`${host}/cusLvStatistics/findEquipmentState`,
  68. //首页实时统计
  69. realTimeStatistics:`${host}/cusLvStatistics/realTimeStatistics`,
  70. //首页本周工作
  71. workThisWeek:`${host}/cusLvStatistics/workThisWeek`,
  72. //查询是否开启选择顾问权限
  73. getSelfAssignedByHouseId:`${host}/user/getSelfAssignedByHouseId`,
  74. //确认加精
  75. addATD:`${host}/addtodigest/addATD`,
  76. //取消加精
  77. delATD:`${host}/addtodigest/delATD`,
  78. }
  79. };
  80. module.exports = config;