mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-23 03:22:17 +08:00
读取消息记录数
This commit is contained in:
parent
30e63fadbe
commit
56fe90cd80
@ -58,7 +58,7 @@ class Msg:
|
||||
sql = '''
|
||||
select localId,TalkerId,Type,SubType,IsSender,CreateTime,Status,StrContent,strftime('%Y-%m-%d %H:%M:%S',CreateTime,'unixepoch','localtime') as StrTime,MsgSvrID
|
||||
from MSG
|
||||
where TRIM(StrTalker)=?
|
||||
where StrTalker=?
|
||||
order by CreateTime
|
||||
'''
|
||||
try:
|
||||
@ -109,7 +109,7 @@ class Msg:
|
||||
sql = '''
|
||||
select localId,TalkerId,Type,SubType,IsSender,CreateTime,Status,StrContent,strftime('%Y-%m-%d %H:%M:%S',CreateTime,'unixepoch','localtime') as StrTime
|
||||
from MSG
|
||||
where TRIM(StrTalker) = ? and localId < ?
|
||||
where StrTalker = ? and localId < ?
|
||||
order by CreateTime desc
|
||||
limit 10
|
||||
'''
|
||||
@ -133,7 +133,7 @@ class Msg:
|
||||
sql = '''
|
||||
select localId,TalkerId,Type,SubType,IsSender,CreateTime,Status,StrContent,strftime('%Y-%m-%d %H:%M:%S',CreateTime,'unixepoch','localtime') as StrTime,MsgSvrID
|
||||
from MSG
|
||||
where TRIM(StrTalker)=? and Type=?
|
||||
where StrTalker=? and Type=?
|
||||
order by CreateTime
|
||||
'''
|
||||
try:
|
||||
@ -150,7 +150,7 @@ class Msg:
|
||||
sql = '''
|
||||
select localId,TalkerId,Type,SubType,IsSender,CreateTime,Status,StrContent,strftime('%Y-%m-%d %H:%M:%S',CreateTime,'unixepoch','localtime') as StrTime,MsgSvrID
|
||||
from MSG
|
||||
where TRIM(StrTalker)=? and Type=1 and LENGTH(StrContent)<? and StrContent like ?
|
||||
where StrTalker=? and Type=1 and LENGTH(StrContent)<? and StrContent like ?
|
||||
order by CreateTime desc
|
||||
'''
|
||||
temp = []
|
||||
@ -194,7 +194,7 @@ class Msg:
|
||||
sql = '''
|
||||
select StrContent,strftime('%Y-%m-%d %H:%M:%S',CreateTime,'unixepoch','localtime') as StrTime
|
||||
from MSG
|
||||
where TRIM(StrTalker)=?
|
||||
where StrTalker=?
|
||||
order by CreateTime
|
||||
limit 1
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user