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

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

Open
huan opened this issue Oct 18, 2021 · 0 comments
Open

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

huan opened this issue Oct 18, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@huan
Copy link
Member

huan commented Oct 18, 2021

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

@huan huan added the enhancement New feature or request label Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant