$template = array(
'touser' => "接收人Openid'",
'template_id' => "模板id",
'url' => '',
'topcolor' => "#FF0000",
'data' => array(
'first' => array(
'value' => urlencode('您有新的订单,请尽快查看!'),
'color' => '#333'
),
'keyword1' => array(
'value' => urlencode('xxxxxx'),
'color' => '#333'
),
'keyword2' => array(
'value' => urlencode('xxxxxx'),
'color' => '#333'
),
'keyword3' => array(
'value' => urlencode('xxxxxx'),
'color' => '#333'
),
'remark' => array(
'value' => urlencode('取车地点为xxxxxx,请尽快安排!'),
'color' => '#333'
),
)
);
load()->classs('weixin.account');
$access_token = WeAccount :: token();
$templateMessage = new class_templateMessage($access_token);
$templateMessage->send_template_message($template);
04-02
4777
07-29
1246