更新飞书 bot 验证过程,兼容新状态码 (#2300)

Co-authored-by: Yu Zhao <0+cmal@users.noreply.github.com>
This commit is contained in:
Yu Zhao
2024-04-11 19:13:23 +08:00
committed by GitHub
parent ac6de4911a
commit 409b3281cc
+1 -1
View File
@@ -525,7 +525,7 @@ export default class NotificationService {
headers: { 'Content-Type': 'application/json' },
})
.json();
if (res.StatusCode === 0) {
if (res.StatusCode === 0 || res.code === 0) {
return true;
} else {
throw new Error(JSON.stringify(res));