HaniBlindBox/honey_box/common/env.js
zpc aa11230116 feat: 前端UI优化和后台管理功能修复
前端优化:
- 修复分享图片配置,使用API返回的share_image
- 新增设置页面,包含用户协议、隐私政策、退出登录、注销账号
- 调整用户中心菜单,将协议相关功能移至设置页面
- 隐藏首页和详情页的参与次数显示
- 商城页面价格显示改为哈尼券(价格x100)

后台管理修复:
- 修复用户列表货币字段映射错误(Diamond字段)
- 修复资金变动对话框,动态加载货币名称
- 修复ChangeDiamondAsync方法使用正确的Money2字段
2026-02-27 20:37:00 +08:00

40 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 项目环境配置文件
* 集中管理所有环境相关的配置参数
*
* 更新说明:
* - 2026年迁移至 .NET 10 后端
* - 开发环境http://localhost:5238 http://192.168.195.15:2822
* - 测试环境:
* - 生产环境:
*/
// 测试环境配置 - .NET 10 后端
const testing = {
// baseUrl: 'https://app.zpc-xy.com/honey/api',
// baseUrl: 'https://api.hanimanghe.top',
// baseUrl: 'http://192.168.1.24:5238',
baseUrl: 'http://192.168.195.15:2822',
imageUrl: 'https://youdas-1308826010.cos.ap-shanghai.myqcloud.com',
loginPage: '',
wxAppId: ''
};
// 根据环境变量选择对应配置
let currentEnv = testing; //production;//testing;//production_wz;
// 衍生配置
const config = {
...currentEnv,
// API请求完整路径
apiBaseUrl: currentEnv.baseUrl + '/api/',
// 微信登录重定向URL
wxLoginUrl: `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${currentEnv.wxAppId}&redirect_uri=${escape(currentEnv.loginPage)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`,
// 图片资源路径
imageBaseUrl: currentEnv.imageUrl + '/static/web',
// 图标资源路径
iconBaseUrl: currentEnv.imageUrl + '/static/web/static/'
};
export default config;