Merge pull request #62 from HDTianRu/main

细节优化
This commit is contained in:
bietiaop 2024-08-21 15:47:53 +08:00 committed by GitHub
commit 68825bba9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;