|
@@ -697,8 +697,8 @@ bot.on('message', async (msg) => {
|
|
|
|
|
|
// 获取被@用户的ID
|
|
// 获取被@用户的ID
|
|
const [user] = await pool.query(
|
|
const [user] = await pool.query(
|
|
- 'SELECT id FROM users WHERE username = ?',
|
|
|
|
- [username]
|
|
|
|
|
|
+ 'SELECT id FROM users WHERE id = ?',
|
|
|
|
+ [msg.reply_to_message.from.id]
|
|
);
|
|
);
|
|
|
|
|
|
let newOperatorId=msg.reply_to_message.from.id;
|
|
let newOperatorId=msg.reply_to_message.from.id;
|