简要描述:
请求域名:
请求URL:
POST:plugin.video-share.frontend.comment.comment-list
参数:
参数名 |
是否必须 |
类型 |
说明 |
page |
NO |
int |
页码 |
video_id |
YES |
int |
视频ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"list": {
"current_page": 1,
"data": [
{
"id": 1,
"uniacid": 2,
"video_id": 1,
"uid": 2600,
"nick_name": "erick",
"head_img_url": "http://thirdwx.qlogo.cn/mmopen/k2yFyyrkSbnOgesg0ryXDt69nF55Nk1hAicP1ODbiaicXDjcRjpgGDbKa4TcLIt5PzvZjiakwdhlA28L1jCwA1PpzicLtO48R7swj/132",
"content": "test",
"images": "a:0:{}",
"comment_id": 0,
"reply_id": null,
"reply_comment_id": null,
"reply_name": null,
"support_num": 1,
"type": 1,
"created_at": "2021-08-02 13:51:39",
"updated_at": "2021-08-02 14:06:24",
"type_name": "评论",
"comment_images": [],
"head_image": "https://thirdwx.qlogo.cn/mmopen/k2yFyyrkSbnOgesg0ryXDt69nF55Nk1hAicP1ODbiaicXDjcRjpgGDbKa4TcLIt5PzvZjiakwdhlA28L1jCwA1PpzicLtO48R7swj/132",
"has_many_support": [
{
"id": 1,
"uniacid": 2,
"comment_id": 1,
"member_id": 2600,
"status": 1,
"created_at": "2021-08-02 14:04:39",
"updated_at": "2021-08-02 14:06:24"
}
],
"reply_num": 1
}
],
"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
},
"member": {
"uid": 2600,
"avatar": "http://thirdwx.qlogo.cn/mmopen/k2yFyyrkSbnOgesg0ryXDt69nF55Nk1hAicP1ODbiaicXDjcRjpgGDbKa4TcLIt5PzvZjiakwdhlA28L1jCwA1PpzicLtO48R7swj/132",
"nickname": "erick",
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/k2yFyyrkSbnOgesg0ryXDt69nF55Nk1hAicP1ODbiaicXDjcRjpgGDbKa4TcLIt5PzvZjiakwdhlA28L1jCwA1PpzicLtO48R7swj/132",
"username": "erick"
},
"num": 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_num |
int |
我设计的是大于0,就折叠,**显示展开XX条回复 ** |
support_num |
string |
点赞数 |
has_many_support |
array |
只要这里面有值就说明当前账号给这个评论点赞了 |
备注: