fix(config): 更新API基础URL配置

- 将开发环境API_BASE_URL从mp-api.websoft.top更改为cms-api.websoft.top
- 将生产环境API_BASE_URL从mp-api.websoft.top更改为cms-api.websoft.top
- 将测试环境API_BASE_URL从mp-api.s209.websoft.top更改为cms-api.s209.websoft.top
- 更新SimpleQRCodeModal组件中的二维码生成API地址为cms-api.websoft.top
This commit is contained in:
2026-01-27 16:53:13 +08:00
parent aff888794f
commit a4938fbe31
2 changed files with 4 additions and 4 deletions

View File

@@ -3,19 +3,19 @@ export const ENV_CONFIG = {
// 开发环境 // 开发环境
development: { development: {
// API_BASE_URL: 'http://127.0.0.1:9200/api', // API_BASE_URL: 'http://127.0.0.1:9200/api',
API_BASE_URL: 'https://mp-api.websoft.top/api', API_BASE_URL: 'https://cms-api.websoft.top/api',
APP_NAME: '开发环境', APP_NAME: '开发环境',
DEBUG: 'true', DEBUG: 'true',
}, },
// 生产环境 // 生产环境
production: { production: {
API_BASE_URL: 'https://mp-api.websoft.top/api', API_BASE_URL: 'https://cms-api.websoft.top/api',
APP_NAME: '桂乐淘', APP_NAME: '桂乐淘',
DEBUG: 'false', DEBUG: 'false',
}, },
// 测试环境 // 测试环境
test: { test: {
API_BASE_URL: 'https://mp-api.s209.websoft.top/api', API_BASE_URL: 'https://cms-api.s209.websoft.top/api',
APP_NAME: '测试环境', APP_NAME: '测试环境',
DEBUG: 'true', DEBUG: 'true',
} }

View File

@@ -81,7 +81,7 @@ const SimpleQRCodeModal: React.FC<SimpleQRCodeModalProps> = ({
{qrContent ? ( {qrContent ? (
<View className={'flex flex-col justify-center'}> <View className={'flex flex-col justify-center'}>
<img <img
src={`https://mp-api.websoft.top/api/qr-code/create-encrypted-qr-image?size=300x300&expireMinutes=60&businessType=gift&data=${encodeURIComponent(qrContent)}`} src={`https://cms-api.websoft.top/api/qr-code/create-encrypted-qr-image?size=300x300&expireMinutes=60&businessType=gift&data=${encodeURIComponent(qrContent)}`}
alt="二维码" alt="二维码"
style={{width: '200px', height: '200px'}} style={{width: '200px', height: '200px'}}
className="mx-auto" className="mx-auto"