From 515cbab7c3986dc24c6e8ef7b5d658be297b92b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A1=E5=A4=8D=E4=B9=A0?= <2353956224@qq.com> Date: Thu, 11 Sep 2025 16:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91ai=E4=BA=BA=E8=AE=BE=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E6=B6=88=E6=81=AF=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 7 +- .env.production | 2 +- src/api/ios.js | 4 + src/components/AgentGuildDialog.vue | 122 +++++++++++++++++ src/components/ChatDialog.vue | 5 +- src/components/MessageDialogd.vue | 197 ++++++++++++++++++++++++++++ src/utils/axios.js | 4 +- src/views/HomeView.vue | 2 +- src/views/VideoStream.vue | 196 +++++++++++++++++++++++---- 9 files changed, 504 insertions(+), 35 deletions(-) create mode 100644 src/components/AgentGuildDialog.vue create mode 100644 src/components/MessageDialogd.vue diff --git a/.env.development b/.env.development index 5e7b6ac..29fd564 100644 --- a/.env.development +++ b/.env.development @@ -1,10 +1,11 @@ # iOS 控制服务 +# VUE_APP_BASE_LOCAL=http://192.168.1.218:34567/ VUE_APP_BASE_LOCAL=http://127.0.0.1:34567/ # VUE_APP_BASE_LOCAL=http://192.168.1.209:34567/ # 业务后端(开发用内网地址) -# VUE_APP_BASE_REMOTE=https://crawlclient.api.yolozs.com -VUE_APP_BASE_REMOTE=http://192.168.1.144:8101/ +VUE_APP_BASE_REMOTE=https://crawlclient.api.yolozs.com +# VUE_APP_BASE_REMOTE=http://192.168.1.144:8101/ # AI 服务 -VUE_APP_BASE_SPECIAL=http://ai.zhukeping.com \ No newline at end of file +VUE_APP_BASE_SPECIAL=https://ai.yolozs.com \ No newline at end of file diff --git a/.env.production b/.env.production index 67dd899..d9f23c0 100644 --- a/.env.production +++ b/.env.production @@ -5,4 +5,4 @@ VUE_APP_BASE_LOCAL=http://127.0.0.1:34567/ VUE_APP_BASE_REMOTE=https://crawlclient.api.yolozs.com # AI 服务(如支持 HTTPS,最好用 https) -VUE_APP_BASE_SPECIAL=http://ai.zhukeping.com \ No newline at end of file +VUE_APP_BASE_SPECIAL=https://ai.yolozs.com \ No newline at end of file diff --git a/src/api/ios.js b/src/api/ios.js index 5877b8e..cc5328a 100644 --- a/src/api/ios.js +++ b/src/api/ios.js @@ -71,4 +71,8 @@ export function anchorList(data) { //设置主播列表 export function deleteAnchorWithIds(data) { return postAxios({ url: 'deleteAnchorWithIds', data }) +} +//设置经纪人信息 +export function aiConfig(data) { + return postAxios({ url: 'aiConfig', data }) } \ No newline at end of file diff --git a/src/components/AgentGuildDialog.vue b/src/components/AgentGuildDialog.vue new file mode 100644 index 0000000..63420ad --- /dev/null +++ b/src/components/AgentGuildDialog.vue @@ -0,0 +1,122 @@ + + + + + \ No newline at end of file diff --git a/src/components/ChatDialog.vue b/src/components/ChatDialog.vue index af7e136..bf855c8 100644 --- a/src/components/ChatDialog.vue +++ b/src/components/ChatDialog.vue @@ -3,7 +3,7 @@

- 消息内容 + 消息翻译内容

+
+
+

+ + 新消息提醒 +

+ + +
+
+ {{ item.sender || '未知用户' }} + · + {{ item.device || '未知设备' }} +
+ +
+ {{ item.text }} +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/src/utils/axios.js b/src/utils/axios.js index 2cd5893..df7b40e 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -20,7 +20,7 @@ function attachInterceptors(instance) { instance.interceptors.request.use((config) => { // 登录/换租户接口可能不需要 token,根据你的需求放行 const urlLast = sliceUrl(config.url || '') - if ((urlLast === 'prologue' || urlLast === 'comment')) { + if ((urlLast === 'prologue' || urlLast === 'comment' || urlLast === 'aiChat-logout')) { config.headers['vvtoken'] = getToken() } // 超时 & 通用头 @@ -42,6 +42,8 @@ function attachInterceptors(instance) { if (data?.code === 0 || data?.code === 200) { // 成功:返回业务数据(没有就回传原 data) return (data?.data !== undefined) ? data.data : data + } else if (data?.code === 40400) { + router.push('/') } // 业务失败:提示 + reject diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index f0a38d1..ae6c936 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -79,7 +79,7 @@ import { getToken, setToken, setUser, setUserPass, getUserPass } from '@/stores/ import { ElLoading, ElMessage } from 'element-plus'; import { passToken } from '@/api/ios'; -let version = ref('1.1.1'); +let version = ref('1.1.4'); onMounted(() => { diff --git a/src/views/VideoStream.vue b/src/views/VideoStream.vue index c591a74..caf7eac 100644 --- a/src/views/VideoStream.vue +++ b/src/views/VideoStream.vue @@ -1,6 +1,10 @@