##获取单商品数据信息
对应方法:get_product_information
#### 接口链接
http://www.lechezai.com/index.php/Api/Product/get_product_information/
#### 请求参数
|字段名|变量名|必填|类型|示例值|描述|
| -- | -- | -- | -- | -- | -- |
|商品唯一ID|product_id|是|String|16|商品id号|
|令牌|token|是|String|e24a373e3147640bf28dea42cb1339e6e3d2b744|身份验证令牌|
#### 示例
http://www.lechezai.com/index.php/Api/Product/get_product_information/?token=xxxxxx&product_id=16
#### 返回结果
基础状态信息
|字段名|变量名|必填|类型|示例值|描述|
| -- | -- | -- | -- | -- | -- |
|状态码|status|是|String|200|200为全局成功状态码|
|状态信息|message|是|String|The request was successful.|接口请求返回的提示信息|
|返回数据|data|是|String|null|请求返回的数据,格式另起|
#### 示例
~~~
{
"status":200,
"message":"The request was successful.",
"data":{
"product_id":"16", //商品唯一id
"category_id":"11", //商品主分类id
"product_sn":"LCZ000016", //商品货号
"market_price":"0.00", //商品市场价格
"shop_price":"36.00", //商品商城售价
"product_number":"187", //商品库存
"warn_number":"0", //库存剩余警告数量
"product_weight":"0", //商品重量
"wu_id":"1", //重量单位id
"product_size":"0", //商品尺寸长-宽-高
"su_id":"1",
"product_thumb":"/Uploads/product/2015-12-03/min_20151203185210126.png", //商品缩略图
"product_img":"/Uploads/product/2015-12-03/mid_20151203185210126.png", //商品标准图片
"original_img":"/Uploads/product/2015-12-03/20151203185210126.png", //商品原图
"viewed":"274", //商品浏览次数
"integral":"0", //商品原始积分
"added_time":"1448691748", //商品添加时间
"last_update":"1450659708", //商品最后修改时间
"sort_order":"0", //商品排序
"max_shop_number":"99", //商品最大购买数量
"min_shop_number":"1", //商品最小购买数量
"points":"0", //商品原始经验值
"manufacturer_id":"0", //商品品牌id
"is_on_sale":"1", //是否上架1上架,0下架
"is_delete":"0", //是否为删除商品1是,0不是
"is_best":"1", //是否为推荐商品,1是,0不是
"is_new":"0", //是否为新品1是,0不是
"is_hot":"0", //是否为热门产品1是,0不是
"is_shipping":"1", //是否要配送1是,0不是
"free_shipping":"1", //是否免运费1是,0不是
"stock_status_id":"1", //库存状态id
"is_promote":"0", //是否促销
"promote_price":"0.00", //促销价格
"promote_start_time":"0",//促销开始时间
"promote_end_time":"0", //促销结束时间
"product_period":"", //产品使用周期
"is_match":"1", //是否需要匹配
"filter_attributes":"", //筛选属性
"product_description":{
"product_id":"16",
"product_name":"发动机润滑系统保护剂", //商品名称
"product_brief":"", //商品简单描述
"product_description":"html的内容,格式为html", //商品html内容,详情
"product_tag":"", //商品标签
"product_sticker":"", //商品贴条
"seo_keyword":"", //商品seo
"meta_title":" //发动机润滑系统保护剂",商品seo标题
"meta_keyword":"", //商品seo关键字
"meta_description":"", //商品seo描述
"pinyin":"fadongjirunhuaxitongbaohuji" //商品搜索拼音
},
"product_option":[ //商品选项信息
{
"product_option_id":"12",
"product_id":"16",
"option_id":"12",
"value":"红色",
"required":"1",
"option_value_id":"15",
"quantity":"1",
"subtract":"1",
"price":"0.00",
"price_prefix":"+",
"points":"1",
"points_prefix":"+",
"weight":"1.00000000",
"weight_prefix":"+",
"image":"/Uploads/product/2015-12-03/20151203195544988.png|/Uploads/product/2015-12-03/mid_20151203195544988.png|/Uploads/product/2015-12-03/min_20151203195544988.png"
},
{
"product_option_id":"13",
"product_id":"16",
"option_id":"12",
"value":"黄色",
"required":"1",
"option_value_id":"16",
"quantity":"1",
"subtract":"1",
"price":"0.00",
"price_prefix":"+",
"points":"1",
"points_prefix":"+",
"weight":"1.00000000",
"weight_prefix":"+",
"image":"/Uploads/product/2015-12-03/20151203195548169.png|/Uploads/product/2015-12-03/mid_20151203195548169.png|/Uploads/product/2015-12-03/min_20151203195548169.png"
}
],
"product_gallery":[ //商品图册信息
],
"product_parts":[ //商品配件信息
],
"product_related":[ //商品关联商品信息
],
"product_reward":[ //商品积分奖励
],
"product_special":[ //商品特价信息
],
"product_article":[ //商品关联文章信息
]
}
}
~~~
#### 当前接口状态码
| 名称 | 描述 | 原因 | 解决方案 |
| -- | -- | -- | -- |
| 200 | 请求成功 | 无 |无|
- 文档概要
- 项目部署及结构
- 项目部署
- 目录结构
- 项目应用
- Admin应用
- Admin应用控制器列表
- 应用配置
- 应用函数库
- 应用模型列表
- Common应用
- AdminBaseController.class.php
- IndexBaseController.class.php
- MainBaseController.class.php
- SystemController.class.php
- UserBaseController.class.php
- 公共配置Conf
- 公共函数库
- 公共模型
- Home应用
- Home应用控制器列表
- Home应用配置
- Home应用函数库
- Home应用模型列表
- User应用
- User应用函数库
- User应用配置
- User应用控制器列表
- User应用模型列表
- Main应用
- Main应用配置
- Api应用
- 应用概述
- 接口控制器列表
- Api获取token/token信息
- Api全局接口状态码
- 商品接口列表
- 获取单商品详情
- 获取分类商品列表
- 附录
- Admin模块全局SESSION
- Admin模块全局缓存
- Home模块全局缓存
- 全局常量