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'; /** * 保存用户信息到本地存储