feat: 更新网络请求地址,使用HTTPS协议替代HTTP
This commit is contained in:
parent
0fef9d1cb7
commit
e36c3c8496
@ -39,7 +39,7 @@
|
||||
"@egg/hooks": "^1.2.0",
|
||||
"@egg/lark-msg-tool": "^1.21.0",
|
||||
"@egg/logger": "^1.6.0",
|
||||
"@egg/net-tool": "^1.23.0",
|
||||
"@egg/net-tool": "^1.24.0",
|
||||
"@egg/path-tool": "^1.4.1",
|
||||
"@langchain/core": "^0.3.30",
|
||||
"@langchain/langgraph": "^0.2.39",
|
||||
|
@ -72,7 +72,7 @@ class AttachService extends NetToolBase {
|
||||
* 开始海龟汤
|
||||
*/
|
||||
async startSoup() {
|
||||
const URL = "http://10.224.124.13:8778/soup"
|
||||
const URL = "https://lark-egg.ai.xiaomi.com/soup"
|
||||
return this.post<Soup>(URL, {}).catch(() => null)
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ class AttachService extends NetToolBase {
|
||||
* @param {Chat2SoupParams} body - 聊天参数
|
||||
*/
|
||||
async chat2Soup(body: Chat2SoupParams) {
|
||||
const URL = "http://10.224.124.13:8778/host"
|
||||
const URL = "https://lark-egg.ai.xiaomi.com/soup/chat"
|
||||
return this.post<Chat2SoupResp>(URL, body).catch(() => null)
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
POST http://localhost:3000/bot?app=egg HTTP/1.1
|
||||
content-type: application/json
|
||||
|
||||
{"schema":"2.0","header":{"event_id":"a953974feed34108023c8b93b2050ee8","token":"tV9djUKSjzVnekV7xTg2Od06NFTcsBnj","create_time":"1736840977726","event_type":"im.message.receive_v1","tenant_key":"2ee61fe50f4f1657","app_id":"cli_a1eff35b43b89063"},"event":{"message":{"chat_id":"oc_8c789ce8f4ecc6695bb63ca6ec4c61ea","chat_type":"group","content":"{\"text\":\"高跟鞋上带刀子么\"}","create_time":"1736840977558","message_id":"om_d8740d16da00fb65ece605492f8d0c9a","message_type":"text","update_time":"1736840977558"},"sender":{"sender_id":{"open_id":"ou_470ac13b8b50fc472d9d8ee71e03de26","union_id":"on_9dacc59a539023df8b168492f5e5433c","user_id":"zhaoyingbo"},"sender_type":"user","tenant_key":"2ee61fe50f4f1657"}}}
|
||||
{"schema":"2.0","header":{"event_id":"5831cd388aa714f2c7a1169116f7713e","token":"tV9djUKSjzVnekV7xTg2Od06NFTcsBnj","create_time":"1736839850758","event_type":"im.message.receive_v1","tenant_key":"2ee61fe50f4f1657","app_id":"cli_a1eff35b43b89063"},"event":{"message":{"chat_id":"oc_8c789ce8f4ecc6695bb63ca6ec4c61ea","chat_type":"group","content":"{\"text\":\"@_user_1 高跟鞋有刀子么\"}","create_time":"1736839850411","mentions":[{"id":{"open_id":"ou_032f507d08f9a7f28b042fcd086daef5","union_id":"on_7111660fddd8302ce47bf1999147c011","user_id":""},"key":"@_user_1","name":"小煎蛋","tenant_key":"2ee61fe50f4f1657"}],"message_id":"om_150b786da5e9fa5f1adcd9aa0b2a2caf","message_type":"text","update_time":"1736839850411"},"sender":{"sender_id":{"open_id":"ou_470ac13b8b50fc472d9d8ee71e03de26","union_id":"on_9dacc59a539023df8b168492f5e5433c","user_id":"zhaoyingbo"},"sender_type":"user","tenant_key":"2ee61fe50f4f1657"}}}
|
Loading…
x
Reference in New Issue
Block a user