diff --git a/manifest.json b/manifest.json index 2203806..fa21255 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "CMDF", - "appid" : "__UNI__6B015BD", + "appid" : "__UNI__A764ECB", "description" : "猫妈狗爸", "versionName" : "1.1.0", "versionCode" : "100", diff --git a/utils/getUrl.js b/utils/getUrl.js index e69de29..4f2dcaa 100644 --- a/utils/getUrl.js +++ b/utils/getUrl.js @@ -0,0 +1,15 @@ +let current ="develop"; +const accountInfo = wx.getAccountInfoSync(); + +current = accountInfo.miniProgram.envVersion; + + +const api={ + develop:"http://h5.xzaiyp.top", + // develop:"https://api-test.catmdogd.com/test-api", + trial:"https://api-test.catmdogd.com/test-api", + release:"https://api.catmdogd.com/prod-api", +} + +const currentUrl = api[current]; +export {currentUrl}; \ No newline at end of file