diff --git a/config/env.ts b/config/env.ts index 05c55bd..ab69ba5 100644 --- a/config/env.ts +++ b/config/env.ts @@ -2,19 +2,19 @@ export const ENV_CONFIG = { // 开发环境 development: { - API_BASE_URL: 'https://cms-api.websoft.top/api', + API_BASE_URL: 'https://yd-api.websoft.top/api', APP_NAME: '开发环境', DEBUG: 'true', }, // 生产环境 production: { - API_BASE_URL: 'https://cms-api.websoft.top/api', + API_BASE_URL: 'https://yd-api.websoft.top/api', APP_NAME: '邕递+', DEBUG: 'false', }, // 测试环境 test: { - API_BASE_URL: 'https://cms-api.s209.websoft.top/api', + API_BASE_URL: 'https://yd-api.s209.websoft.top/api', APP_NAME: '测试环境', DEBUG: 'true', } diff --git a/src/bszx/pay/pay.tsx b/src/bszx/pay/pay.tsx index 398cac6..b031db3 100644 --- a/src/bszx/pay/pay.tsx +++ b/src/bszx/pay/pay.tsx @@ -43,7 +43,7 @@ const Bm = () => { // return false; // } Taro.request({ - url: 'https://cms-api.websoft.top/api/shop/shop-order', + url: 'https://yd-api.websoft.top/api/shop/shop-order', method: 'POST', header: { 'content-type': 'application/json', diff --git a/src/utils/config.ts b/src/utils/config.ts index 1e2d9e8..dde4dc5 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -1,7 +1,7 @@ // 租户ID export const TenantId = 10519; // 接口地址 -export const BaseUrl = 'https://cms-api.websoft.top/api'; +export const BaseUrl = 'https://yd-api.websoft.top/api'; // 当前版本 export const Version = 'v3.0.8'; // 版权信息 diff --git a/src/utils/request.ts b/src/utils/request.ts index af6703d..359b673 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -4,7 +4,7 @@ import {BaseUrl, TenantId} from "@/utils/config"; let baseUrl = BaseUrl if(process.env.NODE_ENV === 'development'){ - baseUrl = 'http://localhost:9200/api' + // baseUrl = 'http://localhost:9200/api' } export function request(options:any) { const token = Taro.getStorageSync('access_token');