V 2.2.9 自动匹配,手动排序

This commit is contained in:
2024-06-13 00:37:31 +08:00
parent 3774e9fe55
commit 79a1929e79
76 changed files with 2499 additions and 1042 deletions
+1 -9
View File
@@ -87,15 +87,7 @@ export class DiscordAPI {
if (typeof res_data == "string") {
res_data = JSON.parse(res_data);
}
if (res_data && res_data.code != 1) {
if (res_data.message) {
throw new Error(res_data.message);
} else if (res_data.description) {
throw new Error(res_data.description)
} else {
throw new Error("未知错误,可联系管理员排查");
}
}
// 直接返回,错误信息外面判断
return res_data;
} catch (error) {
throw error;