细节优化

This commit is contained in:
HDTianRu 2024-08-21 15:44:13 +08:00
parent 198d963ca4
commit d664320c59

View file

@ -31,7 +31,7 @@ export class Panel extends ZZZPlugin {
const uid = await this.getUID(); const uid = await this.getUID();
this.setContext('toBindDevice'); this.setContext('toBindDevice');
await this.reply( await this.reply(
`为UID ${uid}绑定设备,请发送设备信息,或者发送“取消”取消绑定`, `为UID ${uid}绑定设备,请发送设备信息(建议私聊发送),或者发送“取消”取消绑定`,
false, false,
{ at: true, recallMsg: 100 } { at: true, recallMsg: 100 }
); );
@ -85,7 +85,7 @@ export class Panel extends ZZZPlugin {
return false; return false;
} }
logger.debug(`[LTUID:${ltuid}]绑定设备成功deviceFp:${deviceFp}`); logger.debug(`[LTUID:${ltuid}]绑定设备成功deviceFp:${deviceFp}`);
await this.reply('绑定设备成功', false, { at: true, recallMsg: 100 }); await this.reply(`绑定设备成功${this.e.isGroup ? '\n请撤回设备信息' : ''}`, false, { at: true, recallMsg: 100 });
} catch (error) { } catch (error) {
this.reply('设备信息格式错误', false, { at: true, recallMsg: 100 }); this.reply('设备信息格式错误', false, { at: true, recallMsg: 100 });
return false; return false;