feat(config): 更新API基础URL配置
- 将src/utils/config.ts中的BaseUrl从yd-api.websoft.top更改为cms-api.websoft.top - 更新config/env.ts中development、production和test环境的API_BASE_URL配置 - 修改src/bszx/pay/pay.tsx中支付接口请求地址为新的cms-api域名
This commit is contained in:
@@ -2,19 +2,19 @@
|
|||||||
export const ENV_CONFIG = {
|
export const ENV_CONFIG = {
|
||||||
// 开发环境
|
// 开发环境
|
||||||
development: {
|
development: {
|
||||||
API_BASE_URL: 'https://yd-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://yd-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://yd-api.s209.websoft.top/api',
|
API_BASE_URL: 'https://cms-api.s209.websoft.top/api',
|
||||||
APP_NAME: '测试环境',
|
APP_NAME: '测试环境',
|
||||||
DEBUG: 'true',
|
DEBUG: 'true',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const Bm = () => {
|
|||||||
// return false;
|
// return false;
|
||||||
// }
|
// }
|
||||||
Taro.request({
|
Taro.request({
|
||||||
url: 'https://yd-api.websoft.top/api/shop/shop-order',
|
url: 'https://cms-api.websoft.top/api/shop/shop-order',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
header: {
|
header: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// 租户ID
|
// 租户ID
|
||||||
export const TenantId = 10519;
|
export const TenantId = 10519;
|
||||||
// 接口地址
|
// 接口地址
|
||||||
export const BaseUrl = 'https://yd-api.websoft.top/api';
|
export const BaseUrl = 'https://cms-api.websoft.top/api';
|
||||||
// 当前版本
|
// 当前版本
|
||||||
export const Version = 'v3.0.8';
|
export const Version = 'v3.0.8';
|
||||||
// 版权信息
|
// 版权信息
|
||||||
|
|||||||
Reference in New Issue
Block a user