解密后自动加载联系人页面

This commit is contained in:
shuaikangzhou
2023-11-16 00:13:49 +08:00
parent cc97628902
commit e180e58d0f
4 changed files with 34 additions and 16 deletions

View File

@@ -10,6 +10,16 @@ if os.path.exists(micromsg_path):
cursor = DB.cursor()
def init_database():
global DB
global cursor
if not DB:
if os.path.exists(micromsg_path):
DB = sqlite3.connect(micromsg_path, check_same_thread=False)
# '''创建游标'''
cursor = DB.cursor()
def is_database_exist():
return os.path.exists(micromsg_path)