diff --git a/.env.development b/.env.development index aca3657..962b3b9 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ VITE_APP_NAME=后台管理系统 VITE_SOCKET_URL=wss://server.gxwebsoft.com VITE_SERVER_URL=https://gxtyzx-server.websoft.top/api VITE_API_URL=https://gxtyzx-modules.websoft.top/api -VITE_THINK_URL=https://gxtyzx-api.websoft.top/api +#VITE_THINK_URL=https://gxtyzx-api2.websoft.top/api -#VITE_THINK_URL=http://127.0.0.1:9099/api +VITE_THINK_URL=http://127.0.0.1:9099/api diff --git a/.env.production b/.env.production index 134dda6..f89b06b 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,4 @@ VITE_APP_NAME=后台管理系统 VITE_SOCKET_URL=wss://server.gxwebsoft.com VITE_SERVER_URL=https://gxtyzx-server.websoft.top/api VITE_API_URL=https://gxtyzx-modules.websoft.top/api -VITE_THINK_URL=https://gxtyzx-api.websoft.top/api +VITE_THINK_URL=https://gxtyzx-api2.websoft.top/api diff --git a/src/api/think/thinkOrder/index.ts b/src/api/think/thinkOrder/index.ts index d87bcca..f881b63 100644 --- a/src/api/think/thinkOrder/index.ts +++ b/src/api/think/thinkOrder/index.ts @@ -124,3 +124,13 @@ export async function thinkOrderRepay(data: ThinkOrder) { } return Promise.reject(new Error(res.data.message)); } + +export async function thinkOrderCheckCode(data: ThinkOrder) { + const res = await request.post>( + THINK_API_URL + '/think/think-order/check-code', data + ); + if (res.data.code === 0) { + return res.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/api/think/thinkUsersVip/index.ts b/src/api/think/thinkUsersVip/index.ts index 4448525..3a09e39 100644 --- a/src/api/think/thinkUsersVip/index.ts +++ b/src/api/think/thinkUsersVip/index.ts @@ -124,3 +124,13 @@ export async function thinkUsersVipLog(id: number) { } return Promise.reject(new Error(res.data.message)); } + +export async function thinkUsersVipCode(id: number) { + const res = await request.get>( + THINK_API_URL + `/think/think-users-vip/code/${id}` + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/package/booking/checkout.vue b/src/package/booking/checkout.vue index a3a0edc..3122afb 100644 --- a/src/package/booking/checkout.vue +++ b/src/package/booking/checkout.vue @@ -2,7 +2,8 @@ {{ merchant.name }} -