简要描述:

请求域名:

  • http://xx.com

请求URL:

POST:plugin.article.api.comment.get-replys

参数:

参数名 是否必须 类型 说明
page NO int 页码
comment_id YES int 评论ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "total": 3,
        "per_page": 15,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 3,
        "data": [
            {
                "id": 4,
                "uniacid": 2,
                "article_id": 4,
                "uid": 0,
                "nick_name": "管理员",
                "head_img_url": null,
                "content": "?",
                "images": "a:0:{}",
                "comment_id": 1,
                "reply_id": 2600,
                "reply_comment_id": null,
                "reply_name": "erick",
                "type": 2,
                "created_at": "2021-06-18 16:04:40",
                "updated_at": null,
                "type_name": "回复",
                "comment_images": [],
                "head_image": ""
            },
            {
                "id": 3,
                "uniacid": 2,
                "article_id": 4,
                "uid": 2600,
                "nick_name": "erick",
                "head_img_url": "http://thirdwx.qlogo.cn/mmopen/k2yFyyrkSbnOgesg0ryXDt69nF55Nk1hAicP1ODbiaicXDjcRjpgGDbKa4TcLIt5PzvZjiakwdhlA28L1jCwA1PpzicLtO48R7swj/132",
                "content": "haha12",
                "images": "a:0:{}",
                "comment_id": 1,
                "reply_id": 2586,
                "reply_comment_id": 2,
                "reply_name": "A张志强",
                "type": 2,
                "created_at": "2021-06-18 16:04:10",
                "updated_at": "2021-06-18 16:04:10",
                "type_name": "回复",
                "comment_images": [],
                "head_image": "https://thirdwx.qlogo.cn/mmopen/k2yFyyrkSbnOgesg0ryXDt69nF55Nk1hAicP1ODbiaicXDjcRjpgGDbKa4TcLIt5PzvZjiakwdhlA28L1jCwA1PpzicLtO48R7swj/132"
            },
            {
                "id": 2,
                "uniacid": 2,
                "article_id": 4,
                "uid": 2586,
                "nick_name": "A张志强",
                "head_img_url": "http://thirdwx.qlogo.cn/mmopen/pxtwgYSXMN5icant6JTCYQXiaDU6dG7OsO25ut2iaPD46fykA5CR2EG2hmXFlerLBg8OKEFBMCPw793xmIo67JeDicDxwExmMwXk/132",
                "content": "haha12",
                "images": "a:0:{}",
                "comment_id": 1,
                "reply_id": 0,
                "reply_comment_id": 1,
                "reply_name": null,
                "type": 2,
                "created_at": "2021-06-18 16:02:53",
                "updated_at": "2021-06-18 16:02:53",
                "type_name": "回复",
                "comment_images": [],
                "head_image": "https://thirdwx.qlogo.cn/mmopen/pxtwgYSXMN5icant6JTCYQXiaDU6dG7OsO25ut2iaPD46fykA5CR2EG2hmXFlerLBg8OKEFBMCPw793xmIo67JeDicDxwExmMwXk/132"
            }
        ]
    }
}

返回参数说明:

参数名 类型 说明
result int 0:失败,1:成功
msg string 提示消息
data array 返回数据

返回参数 data 说明:

参数名 类型 说明
id int 评论ID
nick_name string 评论昵称
head_image string 评论头像
content string 评论内容
comment_images array 评论图片
reply_name array 回复谁的
created_at string 时间

备注:

1:reply_id 为 0 并且 reply_name 为空的时候,就是回复主评论的。 不用加回复 2:uid 为 0 的时候 ,或者manager_id有值并且大于0时候为管理员,取默认头像。也要考虑一下,有些用户没头像,head_image会为空