涩图模块:修复每日统计没效果
This commit is contained in:
parent
3dac0288f3
commit
61feb23f16
@ -79,7 +79,7 @@ public abstract class Model implements ModelInterface {
|
||||
}
|
||||
}
|
||||
|
||||
public void onTime(Long qq,String time) {
|
||||
public synchronized void onTime(Long qq,String time) {
|
||||
}
|
||||
|
||||
public static StringBuilder getCommands(Class<?> commands) {
|
||||
|
@ -18,9 +18,9 @@ import java.util.TimerTask;
|
||||
public class ApplicationInit implements ApplicationRunner {
|
||||
@Override
|
||||
public void run(ApplicationArguments args) throws Exception {
|
||||
Log.i("ApplicationInit run");
|
||||
new Timer().schedule(new TimerTask() {
|
||||
private String oldTime = "";
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
@ -29,6 +29,7 @@ public class ApplicationInit implements ApplicationRunner {
|
||||
return;
|
||||
}
|
||||
oldTime = time;
|
||||
Log.i("ApplicationInit run > "+oldTime );
|
||||
for (Class<?> model : Model.classList) {
|
||||
new Thread(() -> {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user