简要描述:

  • 搜索商品

请求域名:

  • http://xx.com

请求URL:

GET/&route=plugin.micro-communities.api.trick.getGoods

参数:

参数名 是否必须 类型 说明
goods_name string 商品标题

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "商品信息",
    "data": [
        {
            "id": 278,
            "title": "超级砍价",
            "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/03/twe2V72PAepzd9eeD92W6SS9aAd8sE.jpg",
            "price": "1.00",
            "market_price": "1.00",
			"show_sales": 500
        },
        {
            "id": 277,
            "title": "超级砍价",
            "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/03/twe2V72PAepzd9eeD92W6SS9aAd8sE.jpg",
            "price": "1.00",
            "market_price": "1.00",
			"show_sales":500
        },
        {
            "id": 276,
            "title": "超级砍价",
            "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/03/twe2V72PAepzd9eeD92W6SS9aAd8sE.jpg",
            "price": "1.00",
            "market_price": "1.00",
			"show_sales":
        }
    ]
}

返回参数说明:

参数名 类型 说明
id int 商品ID
title int 商品名称
thumb string 商品图片
market_price array 原价
price string 当前价格
show_sales string 销售数量