From 8a6f29129ab1cb63938a6b0eea254bd4de49077a Mon Sep 17 00:00:00 2001 From: justplaymore Date: Tue, 11 Aug 2015 10:34:40 +0800 Subject: [PATCH] =?UTF-8?q?\Overtrue\Wechat\Notice::formatData=20=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E6=95=B0=E7=BB=84=E9=94=AE=E5=80=BC=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E4=B8=8Ewiki=E4=B8=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 模板消息.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/模板消息.md b/模板消息.md index e8f2dc2..c7302a1 100644 --- a/模板消息.md +++ b/模板消息.md @@ -105,11 +105,11 @@ $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"), - "remark" => array("欢迎再次购买!", "#5599FF"), + "first" => array("恭喜你购买成功!" => '#555555'), + "keynote1" => array("巧克力" => "#336699"), + "keynote2" => array("39.8元" => "#FF0000"), + "keynote3" => array("2014年9月16日" => "#888888"), + "remark" => array("欢迎再次购买!" => "#5599FF"), ); ``` + 复杂型(也是微信官方唯一支持的方式,估计没有人想这么用):