Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wowiwj committed May 17, 2019
1 parent ce94dca commit 0df00fc
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badge/)


### 请先阅读 [钉钉官方文档](https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.NVWSPm&treeId=257&articleId=105735&docType=1#)
### 请先阅读 [钉钉官方文档](https://open-doc.dingtalk.com/microapp/serverapi2/qf2nxq)


# 介绍
Expand All @@ -34,7 +34,8 @@ $ding = new \DingNotice\DingTalk([
"default" => [
'enabled' => true,
'token' => "you-push-token",
'timeout' => 2.0
'timeout' => 2.0,
'ssl_verify' => true
]
]);

Expand Down Expand Up @@ -64,6 +65,7 @@ DING_ENABLED=true
DING_TOKEN=you-push-token
```


### 多机器人配置
如果想要添加多个机器人,则在`ding.php`当中添加机器人名字和相关的配置即可

Expand All @@ -75,15 +77,19 @@ return [

'token' => env('DING_TOKEN',''),

'timeout' => env('DING_TIME_OUT',2.0)
'timeout' => env('DING_TIME_OUT',2.0),

'ssl_verify' => env('DING_SSL_VERIFY',true)
],

'other' => [
'enabled' => env('OTHER_DING_ENABLED',true),

'token' => env('OTHER_DING_TOKEN',''),

'timeout' => env('OTHER_DING_TIME_OUT',2.0)
'timeout' => env('OTHER_DING_TIME_OUT',2.0),

'ssl_verify' => env('DING_SSL_VERIFY',true)
]

];
Expand All @@ -96,6 +102,13 @@ return [
DING_TIME_OUT=
```

### 是否开启SSL验证

- (可选)默认为开启,关闭请手动设置
```php
DING_SSL_VERIFY=false
```

# 使用

## 发送纯文字消息
Expand Down

0 comments on commit 0df00fc

Please sign in to comment.