axetroy / sms-boom

利用chrome的headless模式,模拟用户注册进行短信轰炸机
490 stars 145 forks source link

修复once.js及工行信用卡通道 #20

Closed blackmatch closed 6 years ago

blackmatch commented 6 years ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x")

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Test change
[ ] Chore change
[ ] Update Document
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here) 本地调试时,once.js没有引入utils,工行信用卡通道失败。

What is the new behavior? 修复once.js及工行信用卡通道

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

axetroy commented 6 years ago

感谢PR...

工行信用卡这个. this.alone也只是作用于调试。

老是忘记删除

blackmatch commented 6 years ago

waitNavigation的方法不会往下走了。。。

axetroy commented 6 years ago

@blackmatch 看了一下puppeteer的更新日志,并没有这个改动啊

axetroy commented 6 years ago

@blackmatch 又卡在了下载chromium,大写的尴尬

axetroy commented 6 years ago

不是不会走,默认是30秒的等待时间。会超时的

blackmatch commented 6 years ago

@axetroy 其实页面很快就加载出来了,但是使用waitNavigation会一直卡住不动,然后超时,使用goto就能正常往下走,我觉得应该把超时集中在获取dom元素的地方(即waitForSelector)。我使用goto方法后,工行信用卡的通道是可以走通的,之前是走不通的。