mirror of https://github.com/Nofated095/Q2TG.git
fix: rand 太长导致消息入库失败
This commit is contained in:
parent
dfb0fb8ce7
commit
9a3ecb2f91
|
@ -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
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue