fix: rand 太长导致消息入库失败

This commit is contained in:
Clansty 2022-12-23 15:10:37 +08:00
parent dfb0fb8ce7
commit 9a3ecb2f91
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ model Message {
time Int
brief String?
seq Int
rand Int
rand BigInt @db.BigInt
pktnum Int
tgChatId BigInt @db.BigInt
tgMsgId Int

View File

@ -53,7 +53,7 @@ export default class DeleteMessageService {
});
if (messageInfo) {
try {
this.recallQqMessage(pair.qq, messageInfo.seq, messageInfo.rand,
this.recallQqMessage(pair.qq, messageInfo.seq, Number(messageInfo.rand),
pair.qq instanceof Friend ? messageInfo.time : messageInfo.pktnum,
pair, isOthersMsg);
await db.message.delete({

View File

@ -416,7 +416,7 @@ export default class ForwardService {
source = {
message: quote.brief || ' ',
seq: quote.seq,
rand: quote.rand,
rand: Number(quote.rand),
user_id: Number(quote.qqSenderId),
time: quote.time,
};