Skip to content

Commit

Permalink
fix: broken 360
Browse files Browse the repository at this point in the history
close #719
close #705
  • Loading branch information
hwwgh555 authored Mar 23, 2024
1 parent f3832d3 commit b170f8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bots/Qihoo360AIBrainBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class Qihoo360AIBrainBot extends Bot {
static _brandId = "360AiBrain";
static _className = "Qihoo360AIBrainBot"; // Class name of the bot
static _logoFilename = "360-ai-brain-logo.png";
static _loginUrl = "https://chat.360.cn/";
static _loginUrl = "https://chat.360.com/";

constructor() {
super();
Expand All @@ -16,7 +16,7 @@ export default class Qihoo360AIBrainBot extends Bot {
let available = false;

await axios
.get("https://chat.360.cn/backend-api/apiz/user/info")
.get("https://chat.360.com/backend-api/api/user/info")
.then((response) => {
available = response.data?.context?.message == "OK";
})
Expand Down Expand Up @@ -57,7 +57,7 @@ export default class Qihoo360AIBrainBot extends Bot {
return new Promise((resolve, reject) => {
try {
const source = new SSE(
"https://chat.360.cn/backend-api/api/common/chat",
"https://chat.360.com/backend-api/api/common/chat",
{
headers,
payload,
Expand Down

0 comments on commit b170f8d

Please sign in to comment.