微擎 用户是否已关注公众号

if(empty($_W['openid'])||$_W['fans']['follow']!=1){

message( '请先关注公众号!', '', 'error' );
}

当$_W['openid']为空时,

$_W['fans']['follow'] 等于0是没有关注  等于1是已经关注   follow是关注的意思

转载https://blog.csdn.net/sunxiaowen13/article/details/73776842

posted @ 2020-02-20 15:53  大熊童鞋  阅读(669)  评论(0编辑  收藏  举报