This commit is contained in:
chaosBreaking
2019-10-10 13:14:56 +08:00
parent 25a423b4f9
commit f5e9e8dbe6

4
cn.js
View File

@@ -128,7 +128,11 @@ async function mine (job = mock, done = mock) {
currentIndex += 10;
}
mylog.info('收益计算分配完成');
await system.findOneAndUpdate({
key: 'userIndex4job'
}, { $set: { value: 0 } }).exec();
typeof done === 'function' && done('收益计算分配完成');
process.exit();
}
async function confirm (job = mock, done = mock) {
mylog.info('[Schedule Job] 矿晶确认程序开始执行......');