Skip to content

Commit

Permalink
docs: mod readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tao1991123 committed Jul 9, 2019
1 parent 2858e0d commit 084a6bc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,18 @@ client.env; // env
```


### user集合
### user方法群
```javascript
const user = client.user;
```
#### 校验token是否有效
```javascript
async () => {
const isValid = await user.checkToken();
// true 代表有效 false 代表 无效或者网络不通
}
```

#### 获取用户名下的站点
```javascript
async () => {
Expand Down

0 comments on commit 084a6bc

Please sign in to comment.