Skip to content

Store data/ data to MemoryCard and load from MemoryCard when start #17

@huan

Description

@huan

Currently, OICQ will save device information (device-QQ_NUMBER.json) and token to files under the data/ folder:

$ ls -l data/
total 20
drwxr-xr-x 2 huan huan 4096 Oct  1 09:52 12345
drwxr-xr-x 2 huan huan 4096 Oct 18 01:13 3285698464
drwxr-xr-x 2 huan huan 4096 Oct 17 20:19 918999
drwxrwxr-x 2 huan huan 4096 Oct  1 09:52 image
drwxrwxr-x 2 huan huan 4096 Oct  1 09:52 record
$ ls -l data/3285698464/
total 16
-rw------- 1 huan huan 746 Oct 17 22:50 device-3285698464.json
-rw-rw-r-- 1 huan huan 520 Oct 18 01:13 qrcode.png
-rw------- 1 huan huan 112 Oct 18 20:21 t106
-rw------- 1 huan huan 288 Oct 18 20:21 token

We should save/load them to/from puppet.memory.

See: https://github.com/wechaty/puppet-wechat/blob/e34c8a1a998e045814b3dff052f74385de7a464b/src/puppet-wechat.ts#L1144-L1148

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions