|
|
|
|
@ -134,7 +134,7 @@ Page({
|
|
|
|
|
|
|
|
|
|
// 从后端加载历史对话记录
|
|
|
|
|
wx.request({
|
|
|
|
|
url: 'http://localhost:8080/api/chat/history/' + userId,
|
|
|
|
|
url: 'http://1.92.111.107/api/chat/history/' + userId,
|
|
|
|
|
method: 'GET',
|
|
|
|
|
header: {
|
|
|
|
|
'content-type': 'application/json'
|
|
|
|
|
@ -419,7 +419,7 @@ Page({
|
|
|
|
|
const userId = userInfo.id || 1;
|
|
|
|
|
|
|
|
|
|
wx.request({
|
|
|
|
|
url: 'http://localhost:8080/api/chat/ask',
|
|
|
|
|
url: 'http://1.92.111.107/api/chat/ask',
|
|
|
|
|
method: 'POST',
|
|
|
|
|
timeout: 30000, // 设置30秒超时
|
|
|
|
|
header: {
|
|
|
|
|
@ -712,7 +712,7 @@ Page({
|
|
|
|
|
const userId = userInfo.id || 1;
|
|
|
|
|
|
|
|
|
|
wx.request({
|
|
|
|
|
url: `http://localhost:8080/api/chat/search/${userId}?keyword=${encodeURIComponent(keyword)}`,
|
|
|
|
|
url: `http://1.92.111.107/api/chat/search/${userId}?keyword=${encodeURIComponent(keyword)}`,
|
|
|
|
|
method: 'GET',
|
|
|
|
|
header: {
|
|
|
|
|
'content-type': 'application/json'
|
|
|
|
|
@ -778,7 +778,7 @@ Page({
|
|
|
|
|
const userId = userInfo.id || 1;
|
|
|
|
|
|
|
|
|
|
wx.request({
|
|
|
|
|
url: `http://localhost:8080/api/chat/history/${userId}`,
|
|
|
|
|
url: `http://1.92.111.107/api/chat/history/${userId}`,
|
|
|
|
|
method: 'DELETE',
|
|
|
|
|
header: {
|
|
|
|
|
'content-type': 'application/json'
|
|
|
|
|
|