Changes between Version 3 and Version 4 of pconline_4.2.0/interface
- Timestamp:
- 07/27/2015 02:20:36 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pconline_4.2.0/interface
v3 v4 23 23 {{{ 24 24 25 1)mrobot接口url: 26 http://mrobot.pconline.com.cn/v3/ad 25 1)mrobot接口url: http://mrobot.pconline.com.cn/v3/ad 27 26 2)后端接口: 28 27 HTTP请求方式:get … … 71 70 === 2.2 [=#point202 首页文章列表特型展示] === 72 71 {{{ 73 URL: http://mrobot.pconline.com.cn/v2/cms/channels/1?pageSize=20&pageNo=1 74 请求方式:HTTP GET 75 说明:首页资讯列表 - 头条 76 返回(json格式): 77 普通文章类型: 78 72 备注:首页资讯列表 - 头条 73 1)mrobot接口url:http://mrobot.pconline.com.cn/v2/cms/channels/1?pageSize=20&pageNo=1 74 2)后端接口: 75 HTTP请求方式:get 76 是否需要登录:否 77 返回格式:JSON 78 是否有缓存:有 79 缓存时间:5分钟 80 请求参数: 81 返回参数: 82 { 83 "articleList”: 84 [ 85 //普通文章类型 86 { 87 "bigImage": “http://img0.pconline.com.cn/pconline/c_thumb.jpg”, 88 "cmtCount": 0, 89 "id": “1234567”, 90 "image": “http://img0.xxx/123.jpg”, //兼容旧版,原字段保留 91 "imageHor": “http://img0.xxx/1.jpg”, //横图情况,若没有横图这个字段去掉 92 "informationType": 1, 93 "pubDate": "2015-7-22”, 94 "title": "标题标题标题”, 95 "url": “http://ivy.pconline.com.cn/xxxxx.html”, 96 }, 97 //图集类型 79 98 { 80 81 "bigImage": “http://img0.pconline.com.cn/pconline/c_thumb.jpg", 82 83 "cmtCount": 0, 84 85 "id": “1234567”, 86 99 "image": “http://imgxxx/c_thumb.jpg”, //兼容旧版,原字段保留 100 “imgUrls”: [ 101 “http://imgxxx/c_thumb1.jpg”, 102 “http://imgxxx/c_thumb2.jpg”, //图集三张缩略图情况 103 “http://imgxxx/c_thumb3.jpg” 104 ], 105 "imgCount": 15, 106 "informationType": 1, 107 "isExtend": “0”, 108 "preView": “文字文字文字”, 109 "pubDate": “2015-7-22”, 110 "seq": 7, 111 "title": "文字文字文字”, 112 “to-uri": “pconlinebrowser://album-photo/14686”, 113 "updateAt": 1437494400000 114 }, 115 //直播类型 116 { 117 "cmtCount": 333, 118 "id": “471”, 87 119 "image": “http://img0.xxx/123.jpg”, //兼容旧版,原字段保留 88 89 "imageHor": “http://img0.xxx/1.jpg”, //横图情况,若没有横图这个字段去掉 90 91 "informationType": 1, 92 93 "pubDate": "2015-7-22", 94 95 "title": "标题标题标题", 96 97 "url": “http://ivy.pconline.com.cn/xxxxx.html", 98 120 "imageHor": “http://img0.xxx/1.jpg”, //横图 121 "informationType": 4, 122 "seq": 7, 123 "pubTime": “2015年6月2日至6日”, 124 "status": "直播已结束”, 125 "title": "标题标题标题”, 126 "url": “http://ivy.pconline.com.cn/xxxxx.html”, 127 }, 128 //专题类型 129 { 130 "image": “http://imgxxx/c_thumb.jpg”, //兼容旧版,原字段保留 131 "imageHor": “http://img0.xxx/1.jpg”, //横图情况 132 "informationType": 5, 133 "isExtend": “0”, 134 "preView": “文字文字文字”, 135 "pubDate": “2015-7-22”, 136 "seq": 7, 137 "title": "文字文字文字”, 138 “to-uri": “pconlinebrowser://album-photo/14686”, 139 "updateAt": 1437494400000 99 140 } 100 101 102 103 104 105 图集类型: 106 107 { 108 109 "image": “http://imgxxx/c_thumb.jpg”, //兼容旧版,原字段保留 110 111 “imgUrls”: [ 112 113 “http://imgxxx/c_thumb1.jpg”, 114 115 “http://imgxxx/c_thumb2.jpg”, //图集三张缩略图情况 116 117 “http://imgxxx/c_thumb3.jpg” 118 119 ], 120 121 "imgCount": 15, 122 123 "informationType": 1, 124 125 "isExtend": “0”, 126 127 "preView": “文字文字文字”, 128 129 "pubDate": “2015-7-22", 130 131 "seq": 7, 132 133 "title": "文字文字文字", 134 135 “to-uri": “pconlinebrowser://album-photo/14686”, 136 137 "updateAt": 1437494400000 138 139 } 140 141 142 143 直播类型: 144 145 { 146 147 "cmtCount": 333, 148 149 "id": “471”, 150 151 "image": “http://img0.xxx/123.jpg”, //兼容旧版,原字段保留 152 153 "imageHor": “http://img0.xxx/1.jpg”, //横图 154 155 "informationType": 4, 156 157 "seq": 7, 158 159 "pubTime": “2015年6月2日至6日", 160 161 "status": "直播已结束", 162 163 "title": "标题标题标题", 164 165 "url": “http://ivy.pconline.com.cn/xxxxx.html", 166 167 } 168 169 170 171 专题类型: 172 173 { 174 175 "image": “http://imgxxx/c_thumb.jpg”, //兼容旧版,原字段保留 176 177 "imageHor": “http://img0.xxx/1.jpg”, //横图情况 178 179 "informationType": 5, 180 181 "isExtend": “0”, 182 183 "preView": “文字文字文字”, 184 185 "pubDate": “2015-7-22", 186 187 "seq": 7, 188 189 "title": "文字文字文字", 190 191 “to-uri": “pconlinebrowser://album-photo/14686”, 192 193 "updateAt": 1437494400000 194 195 } 196 141 ], 142 "focus": 143 [], 144 "pageNo": 145 1, 146 "pageSize": 147 20, 148 "topArticle": 149 [], 150 "topFocus": 151 [], 152 "total": 153 200 154 } 197 155 }}} 198 156 199 157 === 2.3 [=#point203 产品库 - 排行榜列表] === 200 158 {{{ 201 URI: 202 请求方式:HTTP GET 203 说明:产品库 - 排行榜列表 204 返回(json格式) 159 备注:产品库 - 排行榜列表 160 1)mrobot接口url: 161 2)后端接口: 162 HTTP请求方式:get 163 是否需要登录:否 164 返回格式:JSON 165 是否有缓存:有 166 缓存时间:30分钟 167 请求参数: 168 返回参数: 205 169 { 206 "data": 207 [{208 "id":576986, //产品id170 "data":[ 171 { 172 "id":576986, //产品id 209 173 "idxPic":"http://img.pconline.com.cn/images/product/5769/576986/q_cn.jpg”, //图片 210 "price":5288, //价格211 "shortName":"三星Galaxy S6”, //名称212 "commentScore”:90, //评分213 “cmtNum”:12”, //评价数174 "price":5288, //价格 175 "shortName":"三星Galaxy S6”, //名称 176 "commentScore”:90, //评分 177 “cmtNum”:12”, //评价数 214 178 } 215 179 ] … … 217 181 218 182 读取数据: 219 220 手机排行:http://product.pconline.com.cn/hot/mobile/ 221 183 手机排行:http://product.pconline.com.cn/hot/mobile/ 222 184 相机排行:http://product.pconline.com.cn/hot/dc/ 223 224 185 笔记本排行:http://product.pconline.com.cn/hot/notebook/ 225 226 186 超极本排行:http://product.pconline.com.cn/hot/notebook/c12087/ 227 228 187 平板排行:http://product.pconline.com.cn/hot/tabletpc/ 229 188 230 231 232 189 不需要分页,一次性获取排行榜列表。列表参数参考普通产品列表页,去掉详细参数,改成评价数。 233 234 190 }}} 235 191 236 192 === 2.4 [=#point204 栏目列表] === 237 193 {{{ 238 iOS: http://mrobot.pconline.com.cn/configs/pconline_v7_cms_iphone_channel_tree 239 请求方式:HTTP GET 240 说明:获取栏目列表 241 返回(json格式) 242 { 243 "news": 244 [ 194 备注:获取栏目列表 195 1)mrobot接口url 196 iOS:http://mrobot.pconline.com.cn/configs/pconline_v7_cms_iphone_channel_tree 197 Android:http://mrobot.pconline.com.cn/configs/pconline_v7_cms_android_channel_tree 198 HTTP请求方式:get 199 是否需要登录:否 200 返回格式:JSON 201 是否有缓存:无 202 请求参数:无 203 返回参数(iOS): 204 { 205 "news":[ 245 206 ["1","头条","609”], 246 207 ["5","Apple","610”], … … 263 224 ["3","导购","616"], 264 225 ], 265 "events": 266 [], 267 "product": 268 [], 269 "area": 270 [ 226 "events": [], 227 "product": [], 228 "area": [ 271 229 ["100000", "全国", "6978"], 272 230 ["110000", "北京", "6978"], … … 303 261 } 304 262 安卓: 305 306 263 安卓端默认定制排序: 307 308 264 头条 新闻 评测 图赏 手机 直播 视听(新增) 309 310 265 安卓端备选定制排序: 311 312 266 笔记本 平板 DIY外设(改名) 相机 无人机(新增) 家电 智能科技(新增) 软件 企业圈(新增) 网络圈(新增) 导购 313 314 267 iOS: 315 316 268 iOS端默认定制排序: 317 318 269 头条 Apple 新闻 评测 图赏 手机 直播 视听(新增) 319 320 270 iOS端备选定制排序: 321 322 271 笔记本 平板 DIY外设(改名) 相机 无人机(新增) 家电 智能科技(新增) 软件(iOS端新增) 企业圈(新增) 网络圈(新增) 导购 323 324 272 删除: 325 326 273 需要删除的: 327 328 274 行情、超级本、电视、摄像机、MID、企业 329 330 }}} 275 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)