config.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * 小程序配置文件
  3. */
  4. // 此处主机域名是腾讯云解决方案分配的域名
  5. // 小程序后台服务解决方案:https://www.qcloud.com/solution/la
  6. const host = '14592619.qcloud.la'
  7. const config = {
  8. // 下面的地址配合云端 Server 工作
  9. host,
  10. // 登录地址,用于建立会话
  11. loginUrl: `https://${host}/login`,
  12. // 测试的请求地址,用于测试会话
  13. requestUrl: `https://${host}/testRequest`,
  14. // 用code换取openId
  15. openIdUrl: `https://${host}/openid`,
  16. // 测试的信道服务接口
  17. tunnelUrl: `https://${host}/tunnel`,
  18. // 生成支付订单的接口
  19. paymentUrl: `https://${host}/payment`,
  20. // 发送模板消息接口
  21. templateMessageUrl: `https://${host}/templateMessage`,
  22. // 发送订阅消息接口
  23. subscribeMessageUrl: `https://${host}/subscribeMessage`,
  24. // 上传文件接口
  25. uploadFileUrl: `https://${host}/upload`,
  26. // 下载示例图片接口
  27. downloadExampleUrl: `https://${host}/static/weapp.jpg`,
  28. // 云开发环境 ID
  29. envId: 'release-b86096',
  30. // 云开发-存储 示例文件的文件 ID
  31. demoImageFileId: 'cloud://release-b86096.7265-release-b86096/demo.jpg',
  32. demoVideoFileId: 'cloud://release-b86096.7265-release-b86096/demo.mp4',
  33. }
  34. module.exports = config