新增日志输出类

修复直播检测不绿的情况
This commit is contained in:
2021-04-01 21:11:15 +08:00
parent 51a0a3d111
commit 44272a609f
22 changed files with 102 additions and 160 deletions

View File

@@ -181,7 +181,7 @@ public class BiliBiliLiveDatabasesManager extends SQLiteManager {
+ ", " + (upData.isEnable() ? 1 : 0)
+ ", " + (upData.isSaveDanmu() ? 1 : 0) +
");";
System.out.println(sql);
com.yutou.bilibili.Tools.Log.i(sql);
statement.execute(sql);
statement.closeOnCompletion();
return true;
@@ -257,7 +257,7 @@ public class BiliBiliLiveDatabasesManager extends SQLiteManager {
return true;
} catch (Exception e) {
e.printStackTrace();
System.out.println(sql);
com.yutou.bilibili.Tools.Log.i(sql);
}
return false;
}

View File

@@ -53,7 +53,7 @@ public class SQLiteManager {
startBatch();
JSONArray array=json.getJSONArray("table");
for (Object o : array) {
System.out.println("创建表:"+((JSONObject)o).getString("name"));
com.yutou.bilibili.Tools.Log.i("创建表:"+((JSONObject)o).getString("name"));
createSqlOfTable((JSONObject) o);
}
closeBatch();