let current ="trial"; const accountInfo = wx.getAccountInfoSync(); // current = accountInfo.miniProgram.envVersion; const api={ develop:"http://127.0.0.1:8002", // develop:"http://h5.xzaiyp.top", // develop:"https://api.catmdogd.com/prod-api", // develop:"https://api-test.catmdogd.com/test-api", trial:"https://pet-admin.hhlm1688.com/api", release:"https://api.catmdogd.com", } const currentUrl = api[current]; export {currentUrl};