Skip to content

Commit

Permalink
fix: 修复页面报错,没有正常emit错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 29, 2017
1 parent 16388b1 commit 32b89f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class App extends EventEmitter {
utils.log(chalk.red('[Fail]:'), entity.name);
// 如果是等待超时
// 则很有可能是验证是否发送成功
if (err instanceof Error && err.message.indexOf('waiting failed')) {
if (err instanceof Error && err.message.indexOf('waiting failed') >= 0) {
return Promise.resolve();
} else if (err) {
return Promise.reject(err);
Expand Down
1 change: 0 additions & 1 deletion app/providers/ZOL游戏.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module.exports = class extends Provider {
constructor() {
super();
this.url = `http://service.zol.com.cn/user/siteLogin.php`;
this.alone = true;
}
async resolve(ctx) {
const options = ctx.options;
Expand Down

0 comments on commit 32b89f0

Please sign in to comment.