简要描述:
请求域名:
请求URL:
POST:plugin.article.api.comment.comment-list
参数:
参数名 |
是否必须 |
类型 |
说明 |
page |
NO |
int |
页码 |
article_id |
YES |
int |
文章ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"total": 1,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"uniacid": 2,
"article_id": 4,
"uid": 2586,
"nick_name": "A张志强",
"head_img_url": "http://thirdwx.qlogo.cn/mmopen/pxtwgYSXMN5icant6JTCYQXiaDU6dG7OsO25ut2iaPD46fykA5CR2EG2hmXFlerLBg8OKEFBMCPw793xmIo67JeDicDxwExmMwXk/132",
"content": "haha1",
"images": "a:0:{}",
"comment_id": 0,
"reply_id": 0,
"reply_comment_id": null,
"reply_name": null,
"type": 1,
"created_at": "2021-06-18 16:01:03",
"updated_at": "2021-06-18 16:01:03",
"type_name": "评论",
"comment_images": [],
"head_image": "https://thirdwx.qlogo.cn/mmopen/pxtwgYSXMN5icant6JTCYQXiaDU6dG7OsO25ut2iaPD46fykA5CR2EG2hmXFlerLBg8OKEFBMCPw793xmIo67JeDicDxwExmMwXk/132",
"reply_num": 3
}
]
}
}
返回参数说明:
参数名 |
类型 |
说明 |
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条回复 ** |
created_at |
string |
时间 |
备注: