简要描述:
请求域名:
- http://xx.com
请求URL:
POST/plugin.local-life.api.store.comment-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
store_id | 是 | int | 门店id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"uniacid": 1,
"brand_id": 1,
"store_id": 11,
"order_id": 0,
"is_show": 1,
"comment": "评论内容",
"member_id": 5,
"pic": "",
"rank": 3,
"created_at": "2024-10-22 14:24:58",
"updated_at": "2024-10-22 14:24:58",
"has_one_member": {
"uid": 5,
"realname": "",
"nickname": "18*******25",
"mobile": "18312687425",
"avatar": "http://119.91.205.224/static/images/photo-mr.jpg",
"avatar_image": "http://119.91.205.224/static/images/photo-mr.jpg",
"username": "18*******25"
}
}
],
"first_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
"links": [
{
"url": null,
"label": "« 上一页",
"active": false
},
{
"url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"next_page_url": null,
"path": "http://119.91.205.224//addons/yun_shop/api.php",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
comment | string | 评论文字内容 |
rank | int | 评论星级 |
pic | array | 评论图片 |
created_at | string | 评论时间 |
has_one_member.nickname | string | 昵称 |
has_one_member.avatar_image | string | 头像 |