diff --git a/config/env.ts b/config/env.ts index 90745f8..f630969 100644 --- a/config/env.ts +++ b/config/env.ts @@ -2,8 +2,8 @@ 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: 'http://127.0.0.1:9200/api', + API_BASE_URL: 'https://mp-api.websoft.top/api', APP_NAME: '开发环境', DEBUG: 'true', }, @@ -15,8 +15,8 @@ export const ENV_CONFIG = { }, // 测试环境 test: { - API_BASE_URL: 'http://127.0.0.1:9200/api', - // API_BASE_URL: 'https://mp-api.websoft.top/api', + // API_BASE_URL: 'http://127.0.0.1:9200/api', + API_BASE_URL: 'https://mp-api.websoft.top/api', APP_NAME: '测试环境', DEBUG: 'true', } diff --git a/src/api/glt/gltUserTicket/index.ts b/src/api/glt/gltUserTicket/index.ts index 9232a79..c412cc0 100644 --- a/src/api/glt/gltUserTicket/index.ts +++ b/src/api/glt/gltUserTicket/index.ts @@ -1,7 +1,6 @@ import request from '@/utils/request'; import type { ApiResult, PageResult } from '@/api'; import type { GltUserTicket, GltUserTicketParam } from './model'; -import { SERVER_API_URL } from '@/utils/server' function normalizeTotal(input: unknown): number { if (typeof input === 'number' && Number.isFinite(input)) return input; @@ -144,8 +143,7 @@ export async function getMyGltUserTicketTotal(userId?: number) { // Try both the configured BaseUrl host and the auth-server host. // If the first one returns 0, keep trying; some tenants deploy GLT on a different host. const urls = [ - '/glt/glt-user-ticket/my-total', - `${SERVER_API_URL}/glt/glt-user-ticket/my-total`, + '/glt/glt-user-ticket/my-total' ] let lastError: unknown diff --git a/src/user/ticket/index.tsx b/src/user/ticket/index.tsx index b5105e7..0f1dedb 100644 --- a/src/user/ticket/index.tsx +++ b/src/user/ticket/index.tsx @@ -339,7 +339,7 @@ const UserTicketList = () => { - {item.templateName || '水票'} + 票号:{item.id} {item.orderNo && ( @@ -353,9 +353,9 @@ const UserTicketList = () => { )} - - {item.status === 1 ? '冻结' : '正常'} - + {/**/} + {/* {item.status === 1 ? '冻结' : '正常'}*/} + {/**/}