简要描述:
请求域名:
- http://xx.com
请求URL:
POST:plugin.video-share.frontend.comment.get-replys
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | NO | int | 页码 |
comment_id | YES | int | 评论ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"current_page": 1,
"data": [
{
"id": 2,
"uniacid": 2,
"video_id": 1,
"uid": 2600,
"nick_name": "erick",
"head_img_url": "http://thirdwx.qlogo.cn/mmopen/k2yFyyrkSbnOgesg0ryXDt69nF55Nk1hAicP1ODbiaicXDjcRjpgGDbKa4TcLIt5PzvZjiakwdhlA28L1jCwA1PpzicLtO48R7swj/132",
"content": "test2",
"images": "a:0:{}",
"comment_id": 1,
"reply_id": 0,
"reply_comment_id": 1,
"reply_name": null,
"support_num": 0,
"type": 2,
"created_at": "2021-08-02 14:00:20",
"updated_at": "2021-08-02 14:00:20",
"type_name": "回复",
"comment_images": [],
"head_image": "https://thirdwx.qlogo.cn/mmopen/k2yFyyrkSbnOgesg0ryXDt69nF55Nk1hAicP1ODbiaicXDjcRjpgGDbKa4TcLIt5PzvZjiakwdhlA28L1jCwA1PpzicLtO48R7swj/132",
"has_many_support": []
}
],
"first_page_url": "http://test3.app/addons/yun_shop/api.php?=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://test3.app/addons/yun_shop/api.php?=1",
"next_page_url": null,
"path": "http://test3.app/addons/yun_shop/api.php",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
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 | 时间 |
support_num | string | 点赞数 |
has_many_support | array | 只要这里面有值就说明当前账号给这个评论点赞了 |
备注:
1:reply_id 为 0 并且 reply_name 为空的时候,就是回复主评论的。 不用加回复