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 @@