修复chronocat 报401

This commit is contained in:
child
2023-11-02 18:33:23 +08:00
parent 62a29867a3
commit b8cb1588fc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -591,7 +591,7 @@ export default class NotificationService {
}
private async chronocat() {
const { chronocatURL, chronocatQQ, chronocatToekn } = this.params;
const { chronocatURL, chronocatQQ, chronocatToken } = this.params;
try {
const user_ids = chronocatQQ
.match(/user_id=(\d+)/g)
@@ -603,7 +603,7 @@ export default class NotificationService {
const url = `${chronocatURL}/api/message/send`;
const headers = {
'Content-Type': 'application/json',
Authorization: `Bearer ${chronocatToekn}`,
Authorization: `Bearer ${chronocatToken}`,
};
for (const [chat_type, ids] of [