Skip to content

Commit

Permalink
📖 Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed May 10, 2017
1 parent 92fecf1 commit 8b36453
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $config = [

// 默认发送配置
'default' => [
// 网关调用策略,默认顺序调用
// 网关调用策略,默认:顺序调用
'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class

// 默认可用的发送网关
Expand Down Expand Up @@ -116,11 +116,13 @@ $easySms->send(13188888888,
<?php

use Overtrue\EasySms\Message;
use Overtrue\EasySms\Strategies\OrderStrategy;

class OrderPaidMessage extends Messeage
{
protected $order;
protected $gateways = ['alidayu', 'yunpian']; // 定义本短信的适用平台,覆盖全局配置中的 `enabled_gateways`
protected $strategy = OrderStrategy::class; // 定义本短信的网关使用策略,覆盖全局配置中的 `default.strategy`
protected $gateways = ['alidayu', 'yunpian', 'juhe']; // 定义本短信的适用平台,覆盖全局配置中的 `default.gateways`

public function __construct($order)
{
Expand Down

0 comments on commit 8b36453

Please sign in to comment.