diff --git a/utils/config.js b/utils/config.js index f7c80fc..521182a 100644 --- a/utils/config.js +++ b/utils/config.js @@ -4,6 +4,7 @@ const ENV_CONFIG = { // 正式版 release: 'https://xcx.yun.588580.xyz', + trial: 'https://xcx.yun.588580.xyz', // 开发版 & 体验版 develop: 'http://172.16.60.235:8080' } @@ -13,7 +14,7 @@ function getBaseUrl() { const accountInfo = wx.getAccountInfoSync() const envVersion = accountInfo.miniProgram.envVersion // release = 正式版, develop = 开发版, trial = 体验版 - return envVersion === 'release' ? ENV_CONFIG.release : ENV_CONFIG.develop + return envVersion === 'trial' ? ENV_CONFIG.trial : ENV_CONFIG.develop } const BASE_URL = getBaseUrl()