add:添加sqlite保存激活记录
This commit is contained in:
@@ -3,7 +3,6 @@ import {exit, isChildJob} from 'ee-core/ps';
|
|||||||
import {childMessage} from 'ee-core/message';
|
import {childMessage} from 'ee-core/message';
|
||||||
import {welcome} from './hello';
|
import {welcome} from './hello';
|
||||||
import {UserService} from '../../service/job/user';
|
import {UserService} from '../../service/job/user';
|
||||||
import {sqlitedbService} from '../../service/database/activateRecord';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* example - TimerJob
|
* example - TimerJob
|
||||||
@@ -20,7 +19,6 @@ class TimerJob {
|
|||||||
this.timeoutTimer = undefined;
|
this.timeoutTimer = undefined;
|
||||||
this.number = 0;
|
this.number = 0;
|
||||||
this.countdown = 10; // 倒计时
|
this.countdown = 10; // 倒计时
|
||||||
sqlitedbService.init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -41,9 +39,6 @@ class TimerJob {
|
|||||||
this.countdown = 10;
|
this.countdown = 10;
|
||||||
this.doTimer(jobId);
|
this.doTimer(jobId);
|
||||||
|
|
||||||
// sqlite
|
|
||||||
const userList = await sqlitedbService.getAllTestDataSqlite();
|
|
||||||
logger.info('[child-process] Sqlite userList:', userList);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user