微信小程序
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.

25 line
564 B

  1. function getURL(location){
  2. let url = wx.getStorageSync('dressCode');
  3. if (location) {
  4. url = location;
  5. }
  6. return url
  7. }
  8. export {
  9. getURL,
  10. }
  11. // module.exports = {
  12. // DEV: {
  13. // wx.getStorageSync('dressCode'): 'https://dazu.nongshen.net/api',
  14. // },
  15. // PRE: {
  16. // wx.getStorageSync('dressCode'): 'https://dazu.nongshen.net/api',
  17. // },
  18. // PROD: {
  19. // wx.getStorageSync('dressCode'): 'https://dazu.nongshen.net/api',
  20. // },
  21. // IMGURL: {
  22. // wx.getStorageSync('dressCode'): 'https://dazu.nongshen.net/api',
  23. // }
  24. // }