多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#消息群发 ##群发消息正式发送 参考文档:[http://mp.weixin.qq.com/wiki/15/40b6865b893947b764e2de8e4a1fb55f.html#.E9.A2.84.E8.A7.88.E6.8E.A5.E5.8F.A3.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8E.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.9D.87.E5.8F.AF.E7.94.A8.E3.80.91](http://mp.weixin.qq.com/wiki/15/40b6865b893947b764e2de8e4a1fb55f.html#.E9.A2.84.E8.A7.88.E6.8E.A5.E5.8F.A3.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8E.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.9D.87.E5.8F.AF.E7.94.A8.E3.80.91) ``` $data['filter']['is_to_all'] = TRUE; $data['filter']['group_id'] = 2; $data['mpnews']['media_id'] = 素材media_id; $data['msgtype'] = 'mpnews'; $res = Weixin::instance( 'message' )->sendall( $data ); ``` ##图文消息预览 ``` $data['touser'] = '粉丝OPENID'; $data['mpnews']['media_id'] = '图文消息media_id'; $data['msgtype'] = 'mpnews'; Weixin::instance( 'message' )->preview( $data ); ```