ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~[api] get:/index/product_info *int:id=30#商品id <<< success { "data": { "id": 30, "name": "商品28", "collected":true, "cart_num":10, "images": [ { "id": 26, "url": "https://v2.phpsongbo.xyz/upload/image/20190204/shop/17.jpg", "open": 1 }, { "id": 27, "url": "https://v2.phpsongbo.xyz/upload/image/20190204/shop/18.jpg", "open": 1 }, { "id": 28, "url": "https://v2.phpsongbo.xyz/upload/image/20190204/shop/19.jpg", "open": 1 } ], "attrbute_list": [ { "id": "2", "name": "颜色", "sub": [ { "id": "4", "name": "蓝" }, { "id": "5", "name": "白" } ] }, { "id": "1", "name": "尺寸", "sub": [ { "id": "1", "name": "L" }, { "id": "2", "name": "M" } ] } ], "content": "<p>我是商品</p>28", "specs_status": 1, "sales": 30, "product_comment_to_count": 20, "product_spec_to": { "4,1": { "money": "29.00", "bazaar_money": "30.00", "postage": "0.00", "stock": 28 }, "4,2": { "money": "32.00", "bazaar_money": "33.00", "postage": "0.00", "stock": 28 }, "5,1": { "money": "35.00", "bazaar_money": "36.00", "postage": "0.00", "stock": 28 }, "5,2": { "money": "38.00", "bazaar_money": "39.00", "postage": "0.00", "stock": 28 } }, "product_comment_to": { "content": "很好19", "level": 5, "created_at": "2019-07-19 14:51:22", "nick_name": "好长的鼻子", "image_url": "https://v2.phpsongbo.xyz/upload/image/20190204/admin_login.jpeg" } }, "code": 8888, "msg": "成功!" } ~~~ ## **请求参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|商品id| ## **成功发回参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |code|是|int|表示请求后的状态| |msg|是|string|表示请求提示信息| |data|是|object|返回数据(data参数)| ## **data参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|表示商品id| |name|是|string|表示商品名称| |images|否|array|商品轮播图| |attrbute_list|否|array|sku选择参数| |product_spec_to|否|array|sku选择参数后价格展示,money=价格,bazaar_money=市场价,postage=邮费,stock=库存| |content|是|string|表示商品详情| |specs_status|是|int|表示商品是否有规格:0=否,1=是| |sales|是|int|表示商品销量| |product_comment_to_count|是|int|表示商品评价数| |product_comment_to|是|object|一条商品评价数据:level=星级,content=详情,created_at=评价时间,nick_name=用户昵称,image_url=用户头像| |collected|是|boolean|表示商品是否收藏true=已收藏,false=为收藏| |cart_num|是|int|表示购物车数量|