From 71aba3f9295ff0ec5f6cf25796be2496949c5fdc Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Thu, 9 Apr 2026 15:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +-- .env.production | 1 + src/apis/Model.ts | 12 +++++------ src/apis/home.ts | 8 ++++---- src/apis/login.ts | 4 ++-- src/components/img/ImgTap.vue | 3 +-- src/components/left/Menu.vue | 2 +- src/components/video/VideoTab.vue | 2 +- src/utlis/request.ts | 4 +++- src/utlis/transform.ts | 33 ++++++++++++++++--------------- src/views/login/Login.vue | 2 +- 11 files changed, 38 insertions(+), 36 deletions(-) create mode 100644 .env.production diff --git a/.env.development b/.env.development index 0016544..6517dba 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1 @@ -VITE_API_BASE_URL = 'https://opencomputing.ai' -VITE_IMG_BASE_URL = 'https://opencomputing.ai' \ No newline at end of file +VITE_API_BASE_URL = 'https://ai.atvoe.com/' diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..7aba812 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_API_BASE_URL = 'https://opencomputing.ai' diff --git a/src/apis/Model.ts b/src/apis/Model.ts index 8ba5065..ebf43cf 100644 --- a/src/apis/Model.ts +++ b/src/apis/Model.ts @@ -1,19 +1,19 @@ import {get, post} from '../utlis/request' // 文生视频 -export const textvideo = (data:D):Promise =>post('/api/llmage/vidu_inference.dspy',data) +export const textvideo = (data:D):Promise =>post('/llmage/vidu_inference.dspy',data) // 图生视频 -export const imagetovideo = (data:D):Promise =>post('/api/llmage/vidu_inference.dspy',data) +export const imagetovideo = (data:D):Promise =>post('/llmage/vidu_inference.dspy',data) // 获取所有模型 -export const AllModel = (data:D):Promise =>get('/api/llmage/get_type_llms.dspy',data) +export const AllModel = (data:D):Promise =>get('/llmage/get_type_llms.dspy',data) // 查询当前模型价格 -export const queryModelPrice = (data:D):Promise =>post('/api/platformbiz/product_query_price.dspy',data) +export const queryModelPrice = (data:D):Promise =>post('/platformbiz/product_query_price.dspy',data) // 获取当天任务列表 -export const getTodayTask = ():Promise =>get('/api/llmage/get_my_asynctasks.dspy') +export const getTodayTask = ():Promise =>get('/llmage/get_my_asynctasks.dspy') // 获取任务状态 -export const getAsyncTaskStatus = (data:D):Promise =>get('/api/llmage/get_asynctask_status.dspy',data) \ No newline at end of file +export const getAsyncTaskStatus = (data:D):Promise =>get('/llmage/get_asynctask_status.dspy',data) \ No newline at end of file diff --git a/src/apis/home.ts b/src/apis/home.ts index a8925ff..aad48c7 100644 --- a/src/apis/home.ts +++ b/src/apis/home.ts @@ -4,13 +4,13 @@ import { get, post } from '../utlis/request' export const getVideos = (data: D): Promise => get('https://vidu.opencomputing.cn/v1/feed/list', data) // 充值 -export const recharge = (data: D): Promise => post('/api/unipay/user_recharge.dspy', data) +export const recharge = (data: D): Promise => post('/unipay/user_recharge.dspy', data) // 开户 -export const openAccount = (): Promise => post('/api/accounting/open_customer_accounts.dspy') +export const openAccount = (): Promise => post('/accounting/open_customer_accounts.dspy') // 余额 -export const balance = (): Promise => get('/api/accounting/mybalance.dspy') +export const balance = (): Promise => get('/accounting/mybalance.dspy') // 充值记录 -export const consumptionRecord = (data:D):Promise => get('/api/platformbiz/query_orders.dspy',data) \ No newline at end of file +export const consumptionRecord = (data:D):Promise => get('/platformbiz/query_orders.dspy',data) \ No newline at end of file diff --git a/src/apis/login.ts b/src/apis/login.ts index 2db1e16..b2b1ba4 100644 --- a/src/apis/login.ts +++ b/src/apis/login.ts @@ -1,5 +1,5 @@ import {get, post} from '@/utlis/request' -export const Code = (data:D):Promise =>get('/api/rbac/gen_sms_code.dspy',data) +export const Code = (data:D):Promise =>get('/rbac/gen_sms_code.dspy',data) -export const LoginApi = (data:D):Promise =>post('/api/rbac/phone_login.dspy',data) \ No newline at end of file +export const LoginApi = (data:D):Promise =>post('/rbac/phone_login.dspy',data) \ No newline at end of file diff --git a/src/components/img/ImgTap.vue b/src/components/img/ImgTap.vue index 3208aed..743fbbf 100644 --- a/src/components/img/ImgTap.vue +++ b/src/components/img/ImgTap.vue @@ -19,10 +19,9 @@