diff --git a/模板消息.md b/模板消息.md index e8f2dc2..561b2a5 100644 --- a/模板消息.md +++ b/模板消息.md @@ -73,9 +73,9 @@ $url = 'http://overtrue.me'; $color = '#FF0000'; $data = array( "first" => "恭喜你购买成功!", - "keynote1" => "巧克力", - "keynote2" => "39.8元", - "keynote3" => "2014年9月16日", + "keyword1" => "巧克力", + "keyword2" => "39.8元", + "keyword3" => "2014年9月16日", "remark" => "欢迎再次购买!", ); @@ -91,9 +91,9 @@ $messageId = $notice->uses($templateId)->withUrl($url)->andData($data)->andRecei ```php $data = array( "first" => "恭喜你购买成功!", - "keynote1" => "巧克力", - "keynote2" => "39.8元", - "keynote3" => "2014年9月16日", + "keyword1" => "巧克力", + "keyword2" => "39.8元", + "keyword3" => "2014年9月16日", "remark" => "欢迎再次购买!", ); ``` @@ -106,9 +106,9 @@ $messageId = $notice->uses($templateId)->withUrl($url)->andData($data)->andRecei ```php $data = array( "first" => array("恭喜你购买成功!", '#555555'), - "keynote1" => array("巧克力", "#336699"), - "keynote2" => array("39.8元", "#FF0000"), - "keynote3" => array("2014年9月16日", "#888888"), + "keyword1" => array("巧克力", "#336699"), + "keyword2" => array("39.8元", "#FF0000"), + "keyword3" => array("2014年9月16日", "#888888"), "remark" => array("欢迎再次购买!", "#5599FF"), ); ``` @@ -117,9 +117,9 @@ $messageId = $notice->uses($templateId)->withUrl($url)->andData($data)->andRecei ```php $data = array( "first" => array("value" => "恭喜你购买成功!", "color" => '#555555'), - "keynote1" => array("value" => "巧克力", "color" => "#336699"), - "keynote2" => array("value" => "39.8元","color" => "#FF0000"), - "keynote3" => array("value" => "2014年9月16日", "color" => "#888888"), + "keyword1" => array("value" => "巧克力", "color" => "#336699"), + "keyword2" => array("value" => "39.8元","color" => "#FF0000"), + "keyword3" => array("value" => "2014年9月16日", "color" => "#888888"), "remark" => array("value" => "欢迎再次购买!", "color" => "#5599FF"), ); ```