[*] 日常优化
This commit is contained in:
@@ -1474,8 +1474,12 @@ class Taoyao extends RemoteClient {
|
|||||||
*
|
*
|
||||||
* @param {*} clientId 目标终端ID
|
* @param {*} clientId 目标终端ID
|
||||||
*/
|
*/
|
||||||
controlWakeup(clientId) {
|
async controlWakeup(clientId) {
|
||||||
this.request(protocol.buildMessage("control::wakeup", {
|
if(clientId === this.clientId) {
|
||||||
|
console.warn("不能自己唤醒自己");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return await this.request(protocol.buildMessage("control::wakeup", {
|
||||||
to: clientId
|
to: clientId
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import com.acgist.taoyao.signal.protocol.ProtocolControlAdapter;
|
|||||||
/**
|
/**
|
||||||
* 终端唤醒信令
|
* 终端唤醒信令
|
||||||
*
|
*
|
||||||
|
* 注意:不能自己唤醒自己
|
||||||
|
*
|
||||||
* @author acgist
|
* @author acgist
|
||||||
*/
|
*/
|
||||||
@Protocol
|
@Protocol
|
||||||
|
|||||||
Reference in New Issue
Block a user