简要描述:

  • 用户登录接口

请求域名:

  • http://xx.com

请求URL:

GET/route=goods.comment.reply-view(视图,传值id)
POST/route=goods.comment.reply(提交存储数据)

传参数说明:

参数名 类型 说明
id int 评论id
以下数据 需要加数组 如:reply[head_img_url]
reply_content str 回复内容
reply_images arr 回复图片(数组)
order_id int 订单id
goods_id int 商品id
nick_name str 默认管理员
reply_id int 回复id
comment_id int 评论id
type int 默认为2

备注:

返回示例:

正确时返回:

{
	result: 1,
	msg: "ok",
	data: {
		comment: {
			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: "评论",
			has_many_reply: [{
				id: 34,
				uniacid: 2,
				order_id: 313,
				goods_id: 64,
				uid: 0,
				nick_name: "管理员",
				head_img_url: "",
				content: "333333333",
				level: 0,
				images: "a:0:{}",
				comment_id: 2,
				reply_id: 2,
				reply_name: null,
				type: 2,
				created_at: "2020-08-04 09:25:20",
				updated_at: null,
				deleted_at: null,
				plugin_id: null,
				plugin_table_id: null,
				type_name: "回复"
			}],
			has_many_append: []
		},
		goods: {
			id: 64,
			uniacid: 2,
			brand_id: 0,
			type: 1,
			status: 1,
			display_order: 0,
			title: "爱心值测试",
			thumb: "http://dev4.yunzshop.com/attachment/images/2/2017/07/qQVX3PmQZpQe1CDuAC13kA0pmql6MP.jpg",
			thumb_url: null,
			sku: "件",
			description: "",
			content: "",
			goods_sn: "",
			product_sn: "",
			market_price: "200.00",
			price: "100.00",
			cost_price: "10.00",
			stock: 78,
			reduce_stock_method: 0,
			show_sales: 22,
			real_sales: 22,
			weight: "0.00",
			has_option: 0,
			is_new: 0,
			is_hot: 0,
			is_discount: 0,
			is_recommand: 1,
			is_comment: 0,
			is_deleted: 0,
			created_at: "2017-07-29 11:45:55",
			deleted_at: null,
			updated_at: "2018-04-17 14:50:24",
			comment_num: 1,
			is_plugin: 0,
			plugin_id: 0,
			virtual_sales: 0,
			goods_video: "",
			no_refund: 0,
			need_address: 0,
			type2: 1,
			old_id: null,
			status_name: "上架"
		}
	}
}

错误时返回:

 {
result: 1,
msg: "评论保存失败",
data: [ ]
}

data 返回参数说明:

参数名 类型 说明
order_id int 订单id
goods_id int 商品id
uid int 会员id
nick_name str 昵称
head_img_url str 头像
content str 评论内容
level int 评论等级
images str 商品图片
comment_id int 评论id
reply_id int 回复id
reply_name str 回复昵称
type int 回复类型: 1会员 2管理员
type_name str 回复名称
has_many_reply[id] int id
has_many_reply[order_id] int 订单id
has_many_reply[goods_id] int 商品id
has_many_reply[uid] int 会员id
has_many_reply[nick_name] str 昵称
has_many_reply[content] str 内容
has_many_reply[images] arr 图片组
has_many_reply[comment_id] int 评论id
has_many_reply[reply_id] int 回复id
has_many_reply[reply_name] str 回复昵称
has_many_reply[type] int 回复类型:1会员 2管理员
has_many_reply[created_at] int 评论时间
has_many_reply[type_name] str 类型名称
goods[id] int 商品id
goods[title] str 商品名称
goods[thumb] str 商品图片

备注:

  • 更多返回错误代码请看首页的错误代码描述