Closed alamusi closed 6 years ago
Yes, according to #636, we will always try to click the switch account button.
If the button appears, then it will be clicked. Otherwise, we will do nothing.
I agree that you proposed a good feature that we should also click the auto login button if it appears too, did I understand right?
@zixia correct!
Similar to some other web-wechat based projects, make the init behaviour configuration with a default value. if we set "autoLogin", then the puppet init will try to find the "log in" button to click; otherwise, the puppet init will try to find the "switch account" button to click (current behaviour)
The reason is that our client would like to have the ability to re-login to his/her previous wechaty instance without having to scan the QR, under the circumstances that the instance was kicked out by other web/mac/pc login.
thanks!
@zixia which version are you expecting this feature to be put in? it seems that the current master and the latest stable 0.14 are quite apart... master moves onto puppeteer and 0.14 is on puppet-web? even though the logic is in bridge...
use 0.14 as an example, there are two approaches to pass the autoLogin option over.
once the autoLogin is passed over to puppet-web, the rest is the same
@zixia let me know which approach you would like to take. thanks
Hello @alamusi ,
I'm very sorry for reply you so late, but we are really busy on de-coupling the wechaty-puppet systems, which we changed a lot, including we separate the puppeteer module to its separate npm module: wechaty-puppet-puppeteer.
I had moved your issue to the new repository, let's continue discussing this topic over there.
Thanks again for your feature request, it's very valuable.
Provide Your Network Information
Where is the location of your server? (i.e. City, or In/Out China) North America
Which cloud platform(AliYun/Qcloud/DigitalOcean/etc) are you using? AWS
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output hereWechaty Doctor
Expected behavior
Add configurable element to Wechaty.instance({}) to control the default init behaviour:
Actual behavior
puppet always calls clickSwitchAccount() per implementation on issue #636
Steps to reproduce the behavior (and fixes, if any)