[*] 日常优化

This commit is contained in:
acgist
2023-10-19 07:54:20 +08:00
parent 3ed1abd43e
commit d1d15d7443

View File

@@ -1256,7 +1256,10 @@ class Taoyao extends RemoteClient {
const response = await this.request(protocol.buildMessage("client::list", { const response = await this.request(protocol.buildMessage("client::list", {
clientType clientType
})); }));
return response.body; const {
body
} = response;
return body || [];
} }
/** /**
@@ -1312,7 +1315,10 @@ class Taoyao extends RemoteClient {
const response = await this.request(protocol.buildMessage("client::status", { const response = await this.request(protocol.buildMessage("client::status", {
clientId clientId
})); }));
return response.body; const {
body
} = response;
return body || {};
} }
/** /**