Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

持久化登录 #169

Closed
Ran-Xing opened this issue May 28, 2022 · 4 comments
Closed

持久化登录 #169

Ran-Xing opened this issue May 28, 2022 · 4 comments

Comments

@Ran-Xing
Copy link

Ran-Xing commented May 28, 2022

  1. 请问持久化登录用 1.x 和0.x
    代码分别是怎么实现的,我尝试添加 memory 但是语法错误

1.x

const bot = WechatyBuilder.build(
    {
        name: config.get("wechaty.WECHATY_PUPPET_PADLOCAL_TOKEN"),
        // memory: memoryCard,
        puppet: "wechaty-puppet-padlocal",
        puppetOptions: {
            profile: config.get("wechaty.WECHATY_PUPPET_PADLOCAL_TOKEN"),
            name: config.get("wechaty.WECHATY_PUPPET_PADLOCAL_TOKEN"),
            token: config.get("wechaty.WECHATY_PUPPET_PADLOCAL_TOKEN"),
            timeoutSeconds: 60,
        }
    }
)
  1. 请问 profile 参数是否还有用呢?
@Ran-Xing
Copy link
Author

我记得wechat4u docker 会自动在docker 里面生成 一个以 token 为首的json文件,不知道iPad怎么实现呢?

@padlocal
Copy link
Collaborator

padlocal commented Jun 5, 2022

以session形式存放

@padlocal padlocal closed this as completed Jun 5, 2022
@Ran-Xing
Copy link
Author

Ran-Xing commented Jun 6, 2022

@padlocal 请提供代码示例,谢谢

@9cat
Copy link

9cat commented Jun 9, 2022

以session形式存放

意思是不用每次都扫码登录吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants