ECJiaWiki:Api:goods/desc (o2o)

来自ECJiaWiki
跳转至: 导航搜索

应用场景

 获取单个商品描述

接口名称

 goods/desc

请求参数

字段名 变量名 必填 类型 示例值 描述
商品id goods_id Int 商品id
货品id product_id Int 到家1.30新增 货品id

举例如下

{
      "token" : "79218f8e710fc755a222de45f43c3fd969b87972",
      "goods_id" : 1,
      "product_id":0,
}

返回参数

字段名 变量名 必填 类型 示例值 描述
返回状态码 status Array() {"succeed" : 1} 返回请求接口后的数据,succeed为1代表成功,0则为失败,失败后则返回error_code(错误code)及error_desc(错误说明)
返回信息 data string 请求接口提供的返回信息

成功举例如下

{
    "data": "<!DOCTYPE html><html><head><title>哈罗闪 德国原装进口 婴儿二合一沐浴洗发露 沐浴200ml</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><meta name=\"viewport\" content=\"initial-scale=1.0\"><meta name=\"viewport\" content=\"initial-scale = 1.0 , minimum-scale = 1.0 , maximum-scale = 1.0\" /><link href=\"http://10.10.10.47/ecjia-b2b2c/content/apps/goods/statics/styles/goodsapi.css\" rel=\"stylesheet\"><base href=\"http://10.10.10.47/\" /></head><body><p><img src=\"http://test.b2b2c.ecjia.com/content/uploads/data/descimg/20160608/14653727274423.jpg\" title=\"14653727274423.jpg\" alt=\"20151216195515866.jpg\"/><img src=\"http://test.b2b2c.ecjia.com/content/uploads/data/descimg/20160608/14653727291296.jpg\" title=\"14653727291296.jpg\" alt=\"20151216195515867.jpg\"/><img src=\"http://test.b2b2c.ecjia.com/content/uploads/data/descimg/20160608/14653727395201.jpg\" title=\"14653727395201.jpg\" alt=\"20151216195515868.jpg\"/><img src=\"http://test.b2b2c.ecjia.com/content/uploads/data/descimg/20160608/14653727413748.jpg\" title=\"14653727413748.jpg\" alt=\"20151216195515869.jpg\"/><img src=\"http://test.b2b2c.ecjia.com/content/uploads/data/descimg/20160608/14653727503426.jpg\" title=\"14653727503426.jpg\" alt=\"20151216195515870.jpg\"/><img src=\"http://test.b2b2c.ecjia.com/content/uploads/data/descimg/20160608/14653727566352.jpg\" title=\"14653727566352.jpg\" alt=\"20151216195515871.jpg\"/><img src=\"http://test.b2b2c.ecjia.com/content/uploads/data/descimg/20160608/14653727621212.jpg\" title=\"14653727621212.jpg\" alt=\"20151216195516873.jpg\"/></p></body></html>",
    "status": {
        "succeed": 1
    }
}

失败举例如下

注:错误编码