url.js 455 B

123456789101112131415161718192021
  1. const accountInfo = wx.getAccountInfoSync();
  2. const current = accountInfo.miniProgram.envVersion;
  3. //console.log(accountInfo, current)
  4. const api = {
  5. //开发
  6. // develop: "https://voms.bosind.com",
  7. develop: "https://voms-test.bosind.com",
  8. //体验版
  9. trial: "https://voms.bosind.com",
  10. // trial: "https://voms-test.bosind.com",
  11. // 正式
  12. release: "https://voms.bosind.com"
  13. }
  14. const requestPath = api[current];
  15. export {
  16. requestPath
  17. };