update
This commit is contained in:
@@ -51,7 +51,7 @@ public class BiliBiliLiveDatabasesManager extends SQLiteManager {
|
||||
*/
|
||||
public void addDanmu(DanmuData data){
|
||||
try{
|
||||
Statement statement = conn.createStatement();
|
||||
Statement statement = getConnection().createStatement();
|
||||
String sql=String.format("insert into `danmu` (`model`,`fontSize`,`fontColor`,`time`,`uCode`,`danmu`,`uid`,`uname`) " +
|
||||
"values (%d,%d,%d,%d,'%s','%s',%d,'%s')"
|
||||
,data.getModel()
|
||||
@@ -80,7 +80,7 @@ public class BiliBiliLiveDatabasesManager extends SQLiteManager {
|
||||
List<DanmuData> list=new ArrayList<>();
|
||||
try {
|
||||
String sql=String.format("select * from `danmu` where time >%d and time <%d",startTime.getTime(),endTime.getTime());
|
||||
Statement statement = conn.createStatement();
|
||||
Statement statement = getConnection().createStatement();
|
||||
ResultSet set = statement.executeQuery(sql);
|
||||
while (set.next()){
|
||||
DanmuData data=new DanmuData();
|
||||
|
||||
Reference in New Issue
Block a user