You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 场景 1
1. user X send => 'what is my token'
2. `token-user` query `user-X`
3. return [...] if null to 4.
4. `user-X` is not match group to 5. else 6.
5. send 'pls add group ...'
6. `token-pool` query used: false
7. send {token: ...}
// 场景 2
1. user X send => 'token: token-1'
2. `token-pool` query
3. return {token: ...} and say: 'del / renewal token...'
4.1 user X send => 'del token-1'
4.2 user X send => 'renewal token-1' then update exp
主要目的:每个开发者可以通过关注friday 查询自己的token有效期,申请或重新续期
相关问题:
1.如何判断当前询问人是否属于开发者
2.如何查询当前开发者拥有的token
3.如何续期不同puppet的token
@huan
1>查询是否在 Contributor 名单,可以按照是否在开发者群为标准 或者 使用 Authing Wechaty Plugin https://github.com/authing/wechaty-authing
2>TOKEN 可以有一个 POOL ,登记上是谁领取就可以了,比如最简单可以在本地一个 json 文件,因为数据量很小。我理想中使用 Google Spreadsheet 做后台,比如这里有一个 Library 可以很方便的实现: https://www.npmjs.com/package/sheet-db 。POOL 由我们社区的 Puppet Service Provider 提供支持。
The text was updated successfully, but these errors were encountered: