首先发了一篇文章,在微信后台。复制文章链接管理员 保存到数据库
$notice_list = $db->getAll(" SELECT `title`,`file_url`,`article_id`,`description`,`link` FROM " .$ecs->table("article"). " WHERE `cat_id` =11 AND `is_open`=1 ORDER BY `article_id` DESC limit 0,5");
$aa = array();
foreach($notice_list as $k=>$v){
$aa[$k][‘title‘] = $v[‘title‘];
$aa[$k][‘Description‘]= $v[‘description‘];
$aa[$k][‘PicUrl‘] = "http://paiangotcwap.e-dar.cn/".$v[‘file_url‘];
$aa[$k][‘url‘] = $v[‘link‘];
}
‘link ‘= http://mp.weixin.qq.com/s?__biz=MjM5MDI3OTAwMg==&mid=200337417&idx=1&sn=5959ed1d722c7da66b6df4a3765ea687#rd;