不要被这个世界改变!|

微信模板消息

这本来是个分享的,但插件不好使了,等有时间在搞一个
 
						foreach ($allUser as $value) {
            $message = [
                'touser' => $value['openid'],
                'template_id' => 'elDWf7c81qLp5Rw6lac1ipYm9hkGLaxOYjzHeDv6NwQ',
                'url' => "http://gwwx.biodiscover.com/live/view/{$liveId}?isshare=1",
                'data' => [
                    'first' => ['value' => "课程开课通知", 'color' => '#173177'],
                    'keyword1' => ['value' => $model->title, 'color' => '#880000'],
                    'keyword2' => ['value' => $model->s_time, 'color' => '#173177'],
                    'remark' => ['value' => '感谢您的关注', 'color' => '#173177'],
                ]
            ];
            $wechat->sendTemplateMessage($message);
						//该片段来自于http://www.codesnippet.cn/detail/0905201815276.html