Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hedeqiang authored Nov 19, 2019
1 parent 4f2a642 commit 1c8e51e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ $ composer require hedeqiang/im -vvv
php bin/hyperf.php vendor:publish hedeqiang/im
```

编辑 `.env` 文件
```php
SDK_APP_ID=1400***
IDENTIFIER=hedeqiang
SECRET_KEY=a56e6938cb1a885***
```

## 使用
### 获取用户在线状态
```php
Expand All @@ -37,7 +44,7 @@ use Hyperf\Config\Annotation\Value;
class IndexController extends AbstractController
{
/**
* @Value("im")
* @Value(key="im")
*/
protected $config;

Expand Down Expand Up @@ -156,4 +163,4 @@ _The code contribution process is not very formal. You just need to make sure th

## License

MIT
MIT

0 comments on commit 1c8e51e

Please sign in to comment.