diff --git a/example/tuling123-bot.js b/example/tuling123-bot.js index 41e17c57c89b28e4ba97a0138ba2c6c88a5d957a..6929f04f96270906bcdc04b49037ca780c4425fd 100644 --- a/example/tuling123-bot.js +++ b/example/tuling123-bot.js @@ -33,8 +33,7 @@ bot .on('login' , e => log.info('Bot', 'bot login.')) .on('logout' , e => log.info('Bot', 'bot logout.')) .on('scan', ({url, code}) => { - console.log(`Scan qrcode in url to login: \n${url}`) - console.log(code) + console.log(`[${code}]Scan qrcode in url to login:\n${url}`) }) .on('message', m => { co(function* () { diff --git a/src/puppet-web-browser.js b/src/puppet-web-browser.js index 8eb205262308324a4ff7fbe50fbb1a39332035e4..30f422fbcd96b427a8e78399d2511a938724f32c 100644 --- a/src/puppet-web-browser.js +++ b/src/puppet-web-browser.js @@ -67,9 +67,9 @@ class Browser { .set('phantomjs.cli.args', [ '--ignore-ssl-errors=true' // this help socket.io connect with localhost , '--load-images=false' + , '--remote-debugger-port=9000' // , '--webdriver-logfile=/tmp/wd.log' // , '--webdriver-loglevel=DEBUG' - // , '--remote-debugger-port=9000' ]) log.silly('Browser', 'phantomjs binary: ' + phantomjsExe)