Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于fs.writeFile 写入报错问题解决 #33

Open
JslinSir opened this issue Dec 23, 2019 · 1 comment
Open

关于fs.writeFile 写入报错问题解决 #33

JslinSir opened this issue Dec 23, 2019 · 1 comment

Comments

@JslinSir
Copy link

image

添加回调

@JslinSir
Copy link
Author

fs.writeFile('config.json', JSON.stringify(config),function(){
var rule = new schedule.RecurrenceRule();
rule.second = [0];
getLeftTicketUrl((data) => {
config.leftTicketUrl = data.leftTicketUrl;
queryTickets(config);
schedule.scheduleJob(rule, function () {
queryTickets(config);
});
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant