From 77b49d8f6c0856f6c9254a9bb089e80199c1448c Mon Sep 17 00:00:00 2001 From: wangyetao <2898314561@qq.com> Date: Tue, 28 Oct 2025 15:19:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E9=80=9Admsecond=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/deepMate/deepMate.js | 4 ++-- utils/http.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/deepMate/deepMate.js b/api/deepMate/deepMate.js index 3adea61..f6374d3 100644 --- a/api/deepMate/deepMate.js +++ b/api/deepMate/deepMate.js @@ -20,7 +20,7 @@ export const getData = () => { export const postIntent = (data) => { return http({ method: 'POST', - url: '/api/deepMate/dmFirst', + url: '/testApi/api/deepMate/dmFirst', data }) } @@ -34,7 +34,7 @@ export const postIntent = (data) => { export const postStock = (data) => { return http({ method: 'POST', - url: '/testApi/api/coze/decodingSecond', + url: '/testApi/api/deepMate/dmSecond', data }) } diff --git a/utils/http.js b/utils/http.js index a446baf..46aaacc 100644 --- a/utils/http.js +++ b/utils/http.js @@ -1,6 +1,6 @@ import { useUserStore } from "../stores/modules/userInfo" -const baseURL = "https://hwjb.homilychart.com/testApi" +const baseURL = "https://hwjb.homilychart.com" const httpInterceptor = { @@ -32,15 +32,15 @@ const httpInterceptor = { 'source-client': 'miniapp', // 标准头与文档头同时设置,确保兼容 'content-type': 'application/json', - // 'contentType': 'application/json', + 'contentType': 'application/json', 'version': '1', 'client': client } //4 添加token,优先用store,没有则回退到body中的token,保持与Apifox一致 const memberStore = useUserStore() // const token = memberStore.userInfo?.token || options.data?.token - options.header.token = '790750702588f1ea79f24dc56ccd5d8a' - const token = '790750702588f1ea79f24dc56ccd5d8a' + options.header.token = 'dccec0b65a94f498b8183a17589ab16e' + const token = 'dccec0b65a94f498b8183a17589ab16e' if (token) { options.header.token = token }