wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
408 stars 68 forks source link

after send image, WARN PuppetLoginMixin logonoff() is deprecated, use `isLoggedIn` #171

Closed goldcome closed 2 years ago

goldcome commented 2 years ago

it also work ,but there is some errs 微信截图_20211120111937

huan commented 2 years ago

I believe the error message is clear enough:

replace all the occurrence of selfId() in your source code by currentUserId because the selfId() has been deprecated.

goldcome commented 2 years ago

there is no selfID in my code,the code is in wechaty-puppet-wechat project,version:

"wechaty": "^1.0.6",
"wechaty-puppet-wechat": "^1.0.1"
huan commented 2 years ago

Yes you are right, after inspecting the code, there have been some selfId() calls in the puppet wechat package.

This problem should have been fixed by the latest commit, and please try wechaty-puppet-wechat@1.7.1 to see if it resolve the problem, and feel free to let me know the result.

goldcome commented 2 years ago

thank you, but there is some problems with npm install

npm ERR! notarget No matching version found for wechaty-puppet-wechat@1.7.1.

Have you published to npm?

huan commented 2 years ago

The v1.7.1 has failed to publish due to some unit tests have not passed.

Please wait for the v1.7.2 to be published, you can see the result from the GitHub Actions at here

goldcome commented 2 years ago

@huan it works without problem. thank you!

huan commented 2 years ago

You are welcome.

Please help us to close this issue if you have no future questions.