fix: api请求验证

This commit is contained in:
chaosBreaking
2019-09-29 23:10:13 +08:00
parent 624f34e1ed
commit f0115b3c26
3 changed files with 19 additions and 9 deletions

View File

@@ -144,7 +144,7 @@ async function confirm (job = mock, done = mock) {
mylog.info(`用户${fund.userId} 共更新${acc}`);
job.touch();
});
return done('矿晶确认完成');
return typeof done === 'function' && done('矿晶确认完成');
}
const jobs = [
{