2025-08-10 02:08:03 +08:00
|
|
|
|
const env = wx.getAccountInfoSync().miniProgram.envVersion; // 获取当前环境(develop/trial/release)
|
|
|
|
|
|
const config = {
|
2025-09-23 12:47:06 +08:00
|
|
|
|
develop: { apiBaseUrl: 'http://192.168.5.5:9096' }, // 开发环境(本地调试)
|
2025-08-10 02:08:03 +08:00
|
|
|
|
trial: { apiBaseUrl: 'https://test-api.example.com' }, // 体验版(测试环境)
|
|
|
|
|
|
release: { apiBaseUrl: 'https://api.example.com' } // 正式版(生产环境)
|
|
|
|
|
|
};
|
|
|
|
|
|
export default config[env];
|