From 52ef8d4199d318a03eee7017ca0d3d70cd5d4d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Fri, 13 Feb 2026 17:18:28 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E6=9B=B4=E6=96=B0=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8API=E5=9F=BA=E7=A1=80URL=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将微信手机号登录接口地址从 server.websoft.top 更改为 glt-server.websoft.top - 将API基础URL从 mp-api.websoft.top 更改为 glt-api.websoft.top - 更新二维码生成接口地址为新的API域名 - 统一所有环境配置中的API基础URL地址 - 修改SERVER_API_URL常量指向新服务器地址 --- config/env.ts | 6 +++--- src/components/SimpleQRCodeModal.tsx | 2 +- src/dealer/apply/add.tsx | 2 +- src/pages/index/Header.tsx | 2 +- src/pages/index/Login.tsx | 2 +- src/pages/user/components/UserCard.tsx | 2 +- src/utils/server.ts | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/env.ts b/config/env.ts index f630969..4ec1704 100644 --- a/config/env.ts +++ b/config/env.ts @@ -3,20 +3,20 @@ export const ENV_CONFIG = { // 开发环境 development: { // API_BASE_URL: 'http://127.0.0.1:9200/api', - API_BASE_URL: 'https://mp-api.websoft.top/api', + API_BASE_URL: 'https://glt-api.websoft.top/api', APP_NAME: '开发环境', DEBUG: 'true', }, // 生产环境 production: { - API_BASE_URL: 'https://mp-api.websoft.top/api', + API_BASE_URL: 'https://glt-api.websoft.top/api', APP_NAME: '桂乐淘', DEBUG: 'false', }, // 测试环境 test: { // API_BASE_URL: 'http://127.0.0.1:9200/api', - API_BASE_URL: 'https://mp-api.websoft.top/api', + API_BASE_URL: 'https://glt-api.websoft.top/api', APP_NAME: '测试环境', DEBUG: 'true', } diff --git a/src/components/SimpleQRCodeModal.tsx b/src/components/SimpleQRCodeModal.tsx index 1acde23..c429754 100644 --- a/src/components/SimpleQRCodeModal.tsx +++ b/src/components/SimpleQRCodeModal.tsx @@ -81,7 +81,7 @@ const SimpleQRCodeModal: React.FC = ({ {qrContent ? ( 二维码 { success: (loginRes) => { if (code) { Taro.request({ - url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', + url: 'https://glt-server.websoft.top/api/wx-login/loginByMpWxPhone', method: 'POST', data: { authCode: loginRes.code, diff --git a/src/pages/index/Header.tsx b/src/pages/index/Header.tsx index 26e37ee..4b0993f 100644 --- a/src/pages/index/Header.tsx +++ b/src/pages/index/Header.tsx @@ -232,7 +232,7 @@ const Header = (_: any) => { success: function () { if (code) { Taro.request({ - url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', + url: 'https://glt-server.websoft.top/api/wx-login/loginByMpWxPhone', method: 'POST', data: { code, diff --git a/src/pages/index/Login.tsx b/src/pages/index/Login.tsx index 9c88ef7..c3e3459 100644 --- a/src/pages/index/Login.tsx +++ b/src/pages/index/Login.tsx @@ -49,7 +49,7 @@ const Login = (props: LoginProps) => { success: function () { if (code) { Taro.request({ - url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', + url: 'https://glt-server.websoft.top/api/wx-login/loginByMpWxPhone', method: 'POST', data: { code, diff --git a/src/pages/user/components/UserCard.tsx b/src/pages/user/components/UserCard.tsx index d2a3f49..f1c935f 100644 --- a/src/pages/user/components/UserCard.tsx +++ b/src/pages/user/components/UserCard.tsx @@ -175,7 +175,7 @@ const UserCard = forwardRef((_, ref) => { success: function () { if (code) { Taro.request({ - url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', + url: 'https://glt-server.websoft.top/api/wx-login/loginByMpWxPhone', method: 'POST', data: { code, diff --git a/src/utils/server.ts b/src/utils/server.ts index 99806c8..f597704 100644 --- a/src/utils/server.ts +++ b/src/utils/server.ts @@ -4,7 +4,7 @@ import {User} from "@/api/system/user/model"; // 模版套餐ID - 请根据实际情况修改 export const TEMPLATE_ID = '10584'; // 服务接口 - 请根据实际情况修改 -export const SERVER_API_URL = 'https://server.websoft.top/api'; +export const SERVER_API_URL = 'https://glt-server.websoft.top/api'; // export const SERVER_API_URL = 'http://127.0.0.1:8000/api'; /** * 保存用户信息到本地存储