Changes between Version 49 and Version 50 of pcauto_4.8.2/interface


Ignore:
Timestamp:
01/06/2016 04:01:51 PM (10 years ago)
Author:
liguokai
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_4.8.2/interface

    v49 v50  
    352352||= =||=  =|| 
    353353 
     354=== 1.5首页列表接口 ===  
     355'''(mrobot已完成,请连开发机进行测试)'''[[BR]]  
     356>mrobot地址:http://mrobot.pcauto.com.cn/v2/cms/channels/{id}?pageNo=1&pageSize=20&v=4.0.0 [[BR]]  
     357例如:http://mrobot.pcauto.com.cn/v2/cms/channels/1?pageNo=1&pageSize=20&v=4.0.0 [[BR]]  
     358cmt开发环境:http://test2.pcauto.com.cn:8002/app/json/ [[BR]]  
     359cmt线上环境:http://www.pcauto.com.cn/app/21json [[BR]]  
     360**说明**    
     361> 此接口为资讯客户端15个栏目集合,涉及参数以及各种情景太多,实在不能穷举,以下只列出新增内容。[[BR]]  
     362> '''对于客户端逻辑,此版本需要注意:1.增加新版视频类型返回:type=9;2.版本号要改为v=4.8.2'''[[BR]]  
     363**缓存时间**          
     364>首页列表5分钟,其余栏目30分钟         
     365**提交方式**  
     366> GET  
     367**是否登录**  
     368> 否  
     369**数据来源**  
     370> cms、快搜、cmt、直播后台等等  
     371**参数**  
     372此版本对传入参数只做一个修改'''v=4.8.2'''。[[BR]]   
     373**返回**  
     374{{{#!java  
     375                {  
     376                    "data": [  
     377                        {  
     378                            "articleType": "y",  
     379                            "channelId": 1,  
     380                            "channelName": "头条",  
     381                            "count": 0,  
     382                            "downs": 0,  
     383                            "id": "6929470",  
     384                            "image": "http://img0.pcauto.com.cn/pcauto/1509/14/g_6959543_1442223329657_240x160.jpg",  
     385                            "pageNo": 3,  
     386                            "pubDate": "2013-01-01",  
     387                            "title": "测试旧文章",  
     388                            "type": 1,  
     389                            "ups": 0,  
     390                            "url": "http://www.pcauto.com.cn/teach/692/6929470_2.html"  
     391                        }  
     392                    ],  
     393                    "focus": [   
     394                        {  
     395                            "articleType": "n",  
     396                            "id": "1623455",  
     397                            "image": "http://img0.pcauto.com.cn/pcauto/app/daogou/1108/201108311.jpg",  
     398                            "pubDate": "2011-08-31",  
     399                            "title": "哈弗H6挑战比亚迪S6/瑞虎/海马骑士",  
     400                            "topicUrl": "http://www.pcauto.com.cn/teach/1108/1622411.html",  
     401                            "url": "http://www.pcauto.com.cn/app/daogou/1108/1623455.html"  
     402                        }  
     403                    ],  
     404                    "pageNo": 1,  
     405                    "pageSize": 1,  
     406                    "topData": [  
     407                        {  
     408                            "cc-uri": "http://count.imofan.com/count?url=http://www.pcauto.com.cn/nation/669/6690671.html&ad=132",  
     409                            "channelId": 0,  
     410                            "channelName": "",  
     411                            "count": 0,  
     412                            "downs": 0,  
     413                            "id": "161",  
     414                            "image": "http://img0.pcauto.com.cn/pcauto/1503/15/6055040_567.jpg",  
     415                            "isExtend": "0",  
     416                            "preView": "央视3·15晚会正在直播 消费在阳光下",  
     417                            "pubDate": "2015-03-15",  
     418                            "seq": 1,  
     419                            "title": "央视3·15晚会直播回顾 消费在阳光下",  
     420                            "to-uri": "pcautobrowser://information-article/161?template=live",  
     421                            "type": 4,  
     422                            "updateAt": 1436284800000,  
     423                            "ups": 0  
     424                        }  
     425                    ],  
     426                    "topFocus": [  
     427                        {  
     428                            "image": "http://www1.pcauto.com.cn/test/qwegf3wrefgvazv.jpg",  
     429                            "seq": 1,  
     430                            "title": "驾名爵锐腾1.5T四驱豪华版",  
     431                            "to-uri": "http://m.pcauto.com.cn/x/guangzhou/?type=zt&FromApp=1&browser=commonwebview&v=4.5.0",  
     432                            "updateAt": 1437408000000  
     433                        }  
     434                    ],  
     435                    "total": 150  
     436                }  
     437}}}               
     438          
     439**返回参数说明**  
     440[[BR]] 在data与focus数组内的每一个JSONOject中type=9表示新版视频[[BR]]  
     441||= 参数名 =||= 参数含义 =||  
     442||= type =||= 1文章,2帖子,3图集,4直播,5专题,6活动,7新专题,9视频,0其他 =||  
     443||= to-uri =||= 论坛版块pcautobrowser://bbs-topics/,图库图片pcautobrowser://album-photo/,车系界面pcautobrowser://serial/,车型界面pcautobrowser://model/ =||  
     444||= pageNo =||= 当type等于1(文章)时,假如有返回pageNo,要跳转到文章相应的pageNo页 =||  
     445||= articleType =||= 值为y表示旧文章 =||  
    354446 
    355447== 2.找车 ==