更新用户登录功能

This commit is contained in:
2025-08-10 02:08:03 +08:00
parent 27da3fe192
commit f7261e1915
6 changed files with 402 additions and 25 deletions

7
miniprogram/env.js Normal file
View File

@@ -0,0 +1,7 @@
const env = wx.getAccountInfoSync().miniProgram.envVersion; // 获取当前环境develop/trial/release
const config = {
develop: { apiBaseUrl: 'http://localhost:9096' }, // 开发环境(本地调试)
trial: { apiBaseUrl: 'https://test-api.example.com' }, // 体验版(测试环境)
release: { apiBaseUrl: 'https://api.example.com' } // 正式版(生产环境)
};
export default config[env];