简要描述:

  • 获取粉丝信息

请求域名:

  • http://xx.com

请求URL:

route=plugin.wechat.admin.staff.controller.staff.index

参数:

|openid |是 |stringg |粉丝的openid|

返回示例:

正确时返回:

{
    "fanid":80,//粉丝id
    "acid":2,
    "uniacid":2,
    "uid":83,//粉丝对应会员id
    "openid":"or2pXwUlvfm4Td7uQI7c-BYcdkaU",//openid
    "nickname":"大大大话。",//粉丝名称
    "groupid":[//所属分组
        "0"
    ],
    "salt":"nSlBnw0g",
    "follow":1,//是否关注,1为已关注,0为未关注
    "followtime":1543226682,//关注时间
    "unfollowtime":1544149782,//取消关注时间
    "updatetime":1541748442,//更新时间
    "unionid":"o-6fOwG-M3K-uBQS87b7wpe_l_XU",
    "has_one_member":[
        {
            "uid":83,//会员id
            "mobile":"15989171473",//会员手机
            "avatar":"http://thirdwx.qlogo.cn/mmopen/FibYEcCAgGxbVmeNe9OodOnIw0ibKS0Xb9kUcz24PfJ4P7ECeibI7ibgBtmAeN6ro65efb2WkqcgEvZDcR8ul7mcVS36mQNPicevz/132",//会员头像
            "nickname":"大大大话。",//会员名称
            "email":"",//会员邮箱
            "avatar_image":"https://thirdwx.qlogo.cn/mmopen/FibYEcCAgGxbVmeNe9OodOnIw0ibKS0Xb9kUcz24PfJ4P7ECeibI7ibgBtmAeN6ro65efb2WkqcgEvZDcR8ul7mcVS36mQNPicevz/132",
            "username":"大大大话。"
        }
    ],
    "chatsRecords":[//聊天记录数组
        {
            "id":1,
            "uniacid":2,
			"avatar":"https://dev8.yunzshop.com/static/upload/images/2019/04/20190415691acbc62eb9bd735a36478da98c1060.jpg",
			"nickname":"芸信项目",
            "acid":0,
            "flag":1,//消息类型,1为客服发送的消息,2为粉丝发送给公众号的消息
            "openid":"or2pXwUlvfm4Td7uQI7c-BYcdkaU",//openid
            "msgtype":"text",//消息类型
            "content":{//消息内容对象
                "content":"1"//文本内容
            },
            "createtime":1539324765//创建时间
        }
    ]
}

返回参数说明:

data 粉丝数据 类型 说明
fanid int 粉丝id
uid int 会员id
openid string openid
nickname string 粉丝名称
groupid array 所属标签
follow int 为1则关注,为0则未关注
followtime int时间戳 关注时间
unfollowtime int时间戳 取消关注时间
updatetime int时间戳 更新时间
has_one_member object 对应会员信息
has_one_member 对应会员信息 类型 说明
uid int 会员id
mobile string 电话
email string 邮箱
avatar_image int 头像
chatsRecords 聊天记录 类型 说明
avatar string 头像链接
flag int 消息类型,1为客服发送的消息,2为粉丝发送给公众号的消息
openid string openid
msgtype string 消息类型,有6种消息类型,文字text,声音voice,图文mpnews,视频video,图片image,音乐music
content object 消息内容对象
content 消息内容对象 类型 说明
content string 消息文本内容,文字类型时请取该字段。音乐内容(包含音乐标题和音乐url的字符串)
attachment string 图片链接/声音链接/视频链接,图片/视频/声音/图文类型时请取该字段

备注:

  • 更多返回错误代码请看首页的错误代码描述