Compare commits

..
2 Commits
Author SHA1 Message Date
sc 208674b558 Merge branch 'master' of http://www.scserverddns.top:13000/sc/DyeingComputer 2025-07-14 21:14:22 +08:00
sc a5d4bc6241 DBlog保存 2025-07-14 21:14:16 +08:00
+2 -3
View File
@@ -34,7 +34,6 @@ namespace DyeingComputer.UserClass
} }
// 创建一个字符串类型的队列 // 创建一个字符串类型的队列
public static Queue<QueueString> DBQueue = new Queue<QueueString>(); public static Queue<QueueString> DBQueue = new Queue<QueueString>();
public static void DBlog(string Name, string ID, string Api, string MESSAGE) public static void DBlog(string Name, string ID, string Api, string MESSAGE)
{ {
Dictionary<string, object> API_LOG = new Dictionary<string, object>();//缓存函数 Dictionary<string, object> API_LOG = new Dictionary<string, object>();//缓存函数
@@ -72,7 +71,7 @@ namespace DyeingComputer.UserClass
API_LOG.Clear(); API_LOG.Clear();
} }
public static void LOGDB(string NAME, Dictionary<string, object> dat) public static void LOGDB(string NAME, Dictionary<string, object> dat)//添加信息到队列
{ {
DBQueue.Enqueue(new QueueString DBQueue.Enqueue(new QueueString
{ {
@@ -88,7 +87,7 @@ namespace DyeingComputer.UserClass
if(DBQueue.Count==0) QueueT=false; if(DBQueue.Count==0) QueueT=false;
} }
public static void LOGDB() public static void LOGDB()//从队列写入数据库
{ {
SQLiteHelpers = new SQLiteHelper(LOGAddress); //数据库连接路径 SQLiteHelpers = new SQLiteHelper(LOGAddress); //数据库连接路径
SQLiteHelpers.Open(); //打开数据库 SQLiteHelpers.Open(); //打开数据库