• 商城-获取商品列表
    • request
    • response

    商城-获取商品列表

    request

    method :get

    URLindex.php?g=Shop&m=GoodsApi&a=goods_list

    字段 类型 是否必须 描述
    goods_id int 商品id

    response

    1. {
    2. "info": {
    3. "goods_info": {
    4. "goods_id": "140",
    5. "cat_id": "123",
    6. "extend_cat_id": "0",
    7. "goods_sn": "TP0000140",
    8. "goods_name": "Apple iPhone 6s 16GB 玫瑰金色 移动联通电信4G手机",
    9. "click_count": "39",
    10. "brand_id": "0",
    11. "store_count": "1000",
    12. "comment_count": "0",
    13. "weight": "500",
    14. "market_price": "4958.00",
    15. "shop_price": "4858.00",
    16. "cost_price": "0.00",
    17. "keywords": "",
    18. "goods_remark": "",
    19. "goods_content": "<p><img src="/Public/upload/goods/2016/04-22/5719844a174d0.jpg" style="float:none;" title="000000000134003091_1_800x800.jpg"/></p><p><img src="/Public/upload/goods/2016/04-22/5719844a2c06c.jpg" style="float:none;" title="000000000134003091_2_800x800.jpg"/></p><p><img src="/Public/upload/goods/2016/04-22/5719844a3bd54.jpg" style="float:none;" title="000000000134003091_3_800x800.jpg"/></p><p><img src="/Public/upload/goods/2016/04-22/5719844a4ca6e.jpg" style="float:none;" title="000000000134003091_4_800x800.jpg"/></p><p><img src="/Public/upload/goods/2016/04-22/5719844a61cbd.jpg" style="float:none;" title="000000000134003091_5_800x800.jpg"/></p><p><br/></p>",
    20. "original_img": "/Public/upload/goods/2016/04-22/5719843a87434.jpg",
    21. "is_real": "1",
    22. "is_on_sale": "1",
    23. "is_free_shipping": "0",
    24. "on_time": "1461290389",
    25. "sort": "50",
    26. "is_recommend": "1",
    27. "is_new": "0",
    28. "is_hot": "1",
    29. "last_update": "0",
    30. "goods_type": "4",
    31. "spec_type": "4",
    32. "give_integral": "0",
    33. "exchange_integral": "0",
    34. "suppliers_id": "0",
    35. "sales_sum": "0",
    36. "prom_type": "3",
    37. "prom_id": "1",
    38. "commission": "0.00",
    39. "spu": "",
    40. "sku": "",
    41. "shipping_area_ids": ""
    42. },
    43. "goods_images_list": [
    44. {
    45. "img_id": "522",
    46. "goods_id": "140",
    47. "image_url": "/Public/upload/goods/2016/04-22/5719843a87434.jpg"
    48. },
    49. {
    50. "img_id": "523",
    51. "goods_id": "140",
    52. "image_url": "/Public/upload/goods/2016/04-22/57198456a2514.jpg"
    53. },
    54. {
    55. "img_id": "524",
    56. "goods_id": "140",
    57. "image_url": "/Public/upload/goods/2016/04-22/57198456932b4.jpg"
    58. },
    59. {
    60. "img_id": "525",
    61. "goods_id": "140",
    62. "image_url": "/Public/upload/goods/2016/04-22/57198456817bf.jpg"
    63. },
    64. {
    65. "img_id": "526",
    66. "goods_id": "140",
    67. "image_url": "/Public/upload/goods/2016/04-22/57198455d2e1b.jpg"
    68. }
    69. ],
    70. "goods_attribute": {
    71. "56": "网络制式",
    72. "57": "支持频率/网络频率",
    73. "58": "尺寸体积",
    74. "59": "外观样式/手机类型",
    75. "60": "主屏参数/内屏参数",
    76. "61": "副屏参数/外屏参数",
    77. "62": "清晰度",
    78. "63": "色数/灰度",
    79. "64": "长度",
    80. "65": "宽度",
    81. "66": "厚度",
    82. "67": "屏幕材质",
    83. "68": "内存容量",
    84. "69": "操作系统",
    85. "70": "通话时间",
    86. "71": "待机时间",
    87. "72": "标准配置",
    88. "73": "WAP上网",
    89. "74": "数据业务",
    90. "75": "天线位置",
    91. "76": "随机配件",
    92. "77": "铃声",
    93. "78": "摄像头",
    94. "79": "彩信/彩e",
    95. "80": "红外/蓝牙",
    96. "81": "价格等级"
    97. },
    98. "goods_attr_list": [
    99. {
    100. "goods_attr_id": "949",
    101. "goods_id": "140",
    102. "attr_id": "56",
    103. "attr_value": "移动4G(TD-LTE),联通4G(TD-LTE),电信4G(TD-LTE),联通4G(FDD-LTE),电信4G(FDD-LTE)",
    104. "attr_price": "0"
    105. },
    106. {
    107. "goods_attr_id": "950",
    108. "goods_id": "140",
    109. "attr_id": "57",
    110. "attr_value": "FDD-LTE/TD-LTE/WCDMA/TD-SCDMA/CDMA2000/GSM",
    111. "attr_price": "0"
    112. },
    113. {
    114. "goods_attr_id": "951",
    115. "goods_id": "140",
    116. "attr_id": "58",
    117. "attr_value": "138.3*67.1*7.1毫米",
    118. "attr_price": "0"
    119. },
    120. {
    121. "goods_attr_id": "952",
    122. "goods_id": "140",
    123. "attr_id": "59",
    124. "attr_value": "直板",
    125. "attr_price": "0"
    126. },
    127. {
    128. "goods_attr_id": "953",
    129. "goods_id": "140",
    130. "attr_id": "62",
    131. "attr_value": "1334×750",
    132. "attr_price": "0"
    133. },
    134. {
    135. "goods_attr_id": "954",
    136. "goods_id": "140",
    137. "attr_id": "64",
    138. "attr_value": "138.3mm",
    139. "attr_price": "0"
    140. },
    141. {
    142. "goods_attr_id": "955",
    143. "goods_id": "140",
    144. "attr_id": "65",
    145. "attr_value": "67.1mm",
    146. "attr_price": "0"
    147. },
    148. {
    149. "goods_attr_id": "956",
    150. "goods_id": "140",
    151. "attr_id": "66",
    152. "attr_value": "7.1mm",
    153. "attr_price": "0"
    154. },
    155. {
    156. "goods_attr_id": "957",
    157. "goods_id": "140",
    158. "attr_id": "68",
    159. "attr_value": "32G",
    160. "attr_price": "0"
    161. },
    162. {
    163. "goods_attr_id": "958",
    164. "goods_id": "140",
    165. "attr_id": "69",
    166. "attr_value": "ios",
    167. "attr_price": "0"
    168. },
    169. {
    170. "goods_attr_id": "959",
    171. "goods_id": "140",
    172. "attr_id": "75",
    173. "attr_value": "内置",
    174. "attr_price": "0"
    175. },
    176. {
    177. "goods_attr_id": "960",
    178. "goods_id": "140",
    179. "attr_id": "78",
    180. "attr_value": "1200万像素",
    181. "attr_price": "0"
    182. },
    183. {
    184. "goods_attr_id": "961",
    185. "goods_id": "140",
    186. "attr_id": "79",
    187. "attr_value": "支持",
    188. "attr_price": "0"
    189. },
    190. {
    191. "goods_attr_id": "962",
    192. "goods_id": "140",
    193. "attr_id": "81",
    194. "attr_value": "高价机",
    195. "attr_price": "0"
    196. }
    197. ],
    198. "spec_goods_price": {
    199. "11_28_100": {
    200. "key": "11_28_100",
    201. "price": "6858.00",
    202. "store_count": "100"
    203. },
    204. "11_28_57": {
    205. "key": "11_28_57",
    206. "price": "6000.00",
    207. "store_count": "100"
    208. },
    209. "11_28_55": {
    210. "key": "11_28_55",
    211. "price": "4858.00",
    212. "store_count": "100"
    213. },
    214. "11_13_100": {
    215. "key": "11_13_100",
    216. "price": "6000.00",
    217. "store_count": "100"
    218. },
    219. "11_13_57": {
    220. "key": "11_13_57",
    221. "price": "5868.00",
    222. "store_count": "100"
    223. },
    224. "11_13_55": {
    225. "key": "11_13_55",
    226. "price": "4858.00",
    227. "store_count": "100"
    228. }
    229. },
    230. "filter_spec": {
    231. "网络": [
    232. {
    233. "item_id": "11",
    234. "item": "4G",
    235. "src": null
    236. }
    237. ],
    238. "内存": [
    239. {
    240. "item_id": "13",
    241. "item": "16G",
    242. "src": null
    243. },
    244. {
    245. "item_id": "28",
    246. "item": "32G",
    247. "src": null
    248. }
    249. ],
    250. "颜色": [
    251. {
    252. "item_id": "55",
    253. "item": "黑色",
    254. "src": null
    255. },
    256. {
    257. "item_id": "57",
    258. "item": "金色",
    259. "src": null
    260. },
    261. {
    262. "item_id": "100",
    263. "item": "玫瑰金",
    264. "src": null
    265. }
    266. ]
    267. }
    268. },
    269. "status": 1,
    270. "url": "",
    271. "state": "success"
    272. }
    字段 类型 描述
    goods_info array 商品基本信息
    goods_images_list array 商品图册
    goods_attribute array 商品所属属性
    goods_attr_list array 商品拥有属性值
    spec_goods_price array 商品规格对应的价格
    filter_spec array 商品拥有的规格

    ps: 失败返回 status != 1,具体看msg信息

    收货地址这里关系到省市联动效果