chore(config): 更新服务器API基础URL地址

- 将微信手机号登录接口地址从 server.websoft.top 更改为 glt-server.websoft.top
- 将API基础URL从 mp-api.websoft.top 更改为 glt-api.websoft.top
- 更新二维码生成接口地址为新的API域名
- 统一所有环境配置中的API基础URL地址
- 修改SERVER_API_URL常量指向新服务器地址
This commit is contained in:
2026-02-13 17:18:28 +08:00
parent 93418912dc
commit 52ef8d4199
7 changed files with 9 additions and 9 deletions

View File

@@ -3,20 +3,20 @@ 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://glt-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://glt-api.websoft.top/api',
APP_NAME: '桂乐淘', APP_NAME: '桂乐淘',
DEBUG: 'false', DEBUG: 'false',
}, },
// 测试环境 // 测试环境
test: { test: {
// 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://glt-api.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://glt-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"

View File

@@ -297,7 +297,7 @@ const AddUserAddress = () => {
success: (loginRes) => { success: (loginRes) => {
if (code) { if (code) {
Taro.request({ Taro.request({
url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', url: 'https://glt-server.websoft.top/api/wx-login/loginByMpWxPhone',
method: 'POST', method: 'POST',
data: { data: {
authCode: loginRes.code, authCode: loginRes.code,

View File

@@ -232,7 +232,7 @@ const Header = (_: any) => {
success: function () { success: function () {
if (code) { if (code) {
Taro.request({ Taro.request({
url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', url: 'https://glt-server.websoft.top/api/wx-login/loginByMpWxPhone',
method: 'POST', method: 'POST',
data: { data: {
code, code,

View File

@@ -49,7 +49,7 @@ const Login = (props: LoginProps) => {
success: function () { success: function () {
if (code) { if (code) {
Taro.request({ Taro.request({
url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', url: 'https://glt-server.websoft.top/api/wx-login/loginByMpWxPhone',
method: 'POST', method: 'POST',
data: { data: {
code, code,

View File

@@ -175,7 +175,7 @@ const UserCard = forwardRef<any, any>((_, ref) => {
success: function () { success: function () {
if (code) { if (code) {
Taro.request({ Taro.request({
url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', url: 'https://glt-server.websoft.top/api/wx-login/loginByMpWxPhone',
method: 'POST', method: 'POST',
data: { data: {
code, code,

View File

@@ -4,7 +4,7 @@ import {User} from "@/api/system/user/model";
// 模版套餐ID - 请根据实际情况修改 // 模版套餐ID - 请根据实际情况修改
export const TEMPLATE_ID = '10584'; 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'; // export const SERVER_API_URL = 'http://127.0.0.1:8000/api';
/** /**
* 保存用户信息到本地存储 * 保存用户信息到本地存储