- let current = "release";
- const accountInfo = wx.getAccountInfoSync();
- current = accountInfo.miniProgram.envVersion;
-
- const api = {
- develop:"http://h5.xzaiyp.top",
- // develop: "http://youyi-test.natapp1.cc/prod-api", // 开发
- trial: "http://h5.xzaiyp.top", //测试
- release: "https://api.catmdogd.com/prod-api",
- }
-
- const currentUrl = api[current];
- export {
- currentUrl
- };
|