简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
GET/route=goods.comment.index(视图)
POST/route=goods.comment.comment-data(获取数据)
传参数说明:
参数名 | 类型 | 说明 |
---|---|---|
以下数据 需要加数组 | 如:search[] | |
keyword | str | 商品标题 |
fade | int | 评价类型 :0全部评价类型 1真实评价 2模拟评价 |
searchtime | str | 时间搜索 :'' 不搜索时间区间 1 搜索时间区间 |
time | int | 时间戳 |
备注:
返回示例:
正确时返回:
{
result: 1,
msg: "ok",
data: {
list: [{
id: 1,
uniacid: 2,
order_id: 0,
goods_id: 96,
uid: 0,
nick_name: "123",
head_img_url: "images/2/2019/11/H6J9894v99JwNsMP48JWAa64W8b4T4.jpg",
content: "11111111111111",
level: 1,
images: "a:0:{}",
comment_id: 0,
reply_id: 0,
reply_name: null,
type: 1,
created_at: "2020-07-21 17:29:02",
updated_at: "2020-07-21 17:29:02",
deleted_at: null,
plugin_id: null,
plugin_table_id: null,
type_name: "评论",
goods: {
id: 96,
title: "门店1",
thumb: "images/2/2017/10/X0vxO7w67l7h0435i777Xi7Hs3i770.png",
status_name: null
}
},
{
id: 2,
uniacid: 2,
order_id: 313,
goods_id: 64,
uid: 2,
nick_name: "Joe",
head_img_url: "http://wx.qlogo.cn/mmopen/k2yFyyrkSbmMnj3XBSicJyTHNPS3RRvVZSfYO8kJgAj4ZX3ZjZ1OevopAlddk3gwia5tE48Nia3zC2CzVPn4KuqTum4HH0jIFI8/0",
content: "132321",
level: 5,
images: null,
comment_id: 0,
reply_id: 0,
reply_name: null,
type: 1,
created_at: "2017-09-26 16:52:33",
updated_at: "2017-09-26 16:52:33",
deleted_at: null,
plugin_id: null,
plugin_table_id: null,
type_name: "评论",
goods: {
id: 64,
title: "爱心值测试",
thumb: "http://dev4.yunzshop.com/attachment/images/2/2017/07/qQVX3PmQZpQe1CDuAC13kA0pmql6MP.jpg",
status_name: null
}
}
],
total: 2,
search: {
keyword: "",
fade: "",
searchtime: "",
starttime: 1592817839,
endtime: 1595409839
}
}
}
错误时返回:
data 返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
order_id | int | 订单id |
goods_id | int | 商品id |
uid | int | 会员id |
nick_name | str | 会员昵称 |
head_img_url | str | 会员头像 |
content | str | 内容 |
level | int | 评论等级(1星-5星) |
images | str | 图片 |
comment_id | int | 评论id |
reply_id | int | 回复会员id |
reply_name | str | 回复的会员名称 |
type | int | 类型 |
plugin_id | int | 插件id |
plugin_table_id | int | 插件表id |
type_name | str | 类型名 |
goods[id] | int | 商品id |
goods[title] | str | 商品标题 |
goods[thumb] | str | 商品图片 |
goods[status_name] | str | 商品状态名 |
备注:
- 更多返回错误代码请看首页的错误代码描述