wiki:pcauto_pconline_3.3.0/web-intf

Version 59 (modified by daiyuwen, 13 years ago) (diff)

--

电脑汽车项目接口

目录

  1. 开发时间,负责人及进度汇报

1.5 电脑网涉及接口

1.6 汽车网涉及接口

  1. mrobot的接口

2.1 产品终端页点评分数参数修改(电脑)

2.2 搜索贴子增加分页(汽车,电脑)

2.3 产品终端概述增加协议跳转(电脑)

2.4 产品库增加类别(电脑)(两个接口) ]

2.5 广告HTML界面增加参数(电脑,汽车)

2.6 首页头条文章增加字段(电脑,汽车)

2.7 产品列表参数显示个数修改(电脑,汽车)

2.8 车型经销商,车系经销商接口处理(汽车)

2.9 车系终端页车型列表数据只展示在售车型和停产在售车型(汽车)

2.10 车型库对比结果页对比逻辑修改(汽车)

2.11 车型库车型HTML 增加协议(汽车)

2.12 车型图库接口更改,增加图片个数统计,增加车系图形库接口(汽车)

2.13 通过车系id获得车型列表接口 价格 字段修改(汽车)

2.14 车系搜索接口增加(汽车)

2.15 询价界面接口增加(汽车)

2.16 车型界面参数修改(汽车)

2.17 产品库的文章中,将评测文章置顶(电脑)

2.18 电脑网对比页面

2.19 车型库文章接口

  1. 配合的接口(电脑汽车接口)

3.1 通过车系id列出车系id列表接口更改

3.2 车型经销商接口更改

3.3 图片库顺序 接口更改

3.4 新增加搜索车系接口

3.5 新增加询价具体车型接口省份id列表接口

3.6 新增加询价具体车型接口

  1. 测试环境接口配置
  1. 修改历史

1. 开发时间,负责人及进度汇报

批次 页面 涉及MROBOT接口 是否需要
HTML切图
需配合的接口负责人
及进度
接口开发
预计时间
接口进度(百分比) 接口实际
完成时间
0 2.1 产品终端页点评分数参数修改(电脑)
2.2 搜索贴子增加分页(汽车,电脑)
2.3 产品终端概述增加协议跳转(电脑)
- - 需配合的接口负责人
及进度
11/16 100% -
0 2.4 产品库增加类别(电脑)
2.5 广告HTML界面增加参数(电脑,汽车)
2.6 首页头条文章增加字段(电脑,汽车)
- - 需配合的接口负责人
及进度
11/19 100% -
0 2.7 产品列表参数显示修改(电脑,汽车)
2.8 车型经销商,车系经销商接口处理(汽车)
2.9 车系终端页车型列表数据只展示在售车型和停产在售车型(汽车)
- - 需配合的接口负责人
及进度
11/20 70%
2.8 车型经销商,车系经销商接口处理(汽车)
缺设计稿及接口
0 2.10 车型库对比结果页对比逻辑修改(汽车)
2.11 车型库车型HTML 增加协议(汽车)
2.12 车型图库接口更改,增加图片个数统计,增加车系图形库接口(汽车)
- - 需配合的接口负责人
及进度
11/21 60%
2.10 车型库对比结果页对比逻辑修改(汽车)
缺少设计
2.11 车型库车型HTML 增加协议(汽车)
缺接口,缺设计
-
0 2.13 通过车系id获得车型列表接口 价格 字段修改(汽车)
2.14 车系搜索接口增加(汽车)
2.15 询价界面接口增加(汽车)
- - 需配合的接口负责人
及进度
11/22 - -
0 2.16 车型界面参数修改(汽车)
2.17 产品库的文章中,将评测文章置顶(电脑)
2.18 电脑网对比页面
2.18 电脑网对比页面
- - 需配合的接口负责人
及进度
11/23 - -

1.5 电脑网涉及接口

如下接口均为涉及到的接口

2.1 产品终端页点评分数参数修改(电脑)

2.2 搜索贴子增加分页(汽车,电脑)

2.3 产品终端概述增加协议跳转(电脑)

2.4 产品库增加类别(电脑)(两个接口)

2.5 广告HTML界面增加参数(电脑,汽车)

2.6 首页头条文章增加字段(电脑,汽车)

这个未完成置顶,接口与之前不变 2.17 产品库的文章中,将评测文章置顶(电脑)

2.18 电脑网对比页面

1.6 汽车涉及接口

[完成] 2.2 搜索贴子增加分页(汽车,电脑)

[完成] 2.5 广告HTML界面增加参数(电脑,汽车)

[完成] 2.6 首页头条文章增加字段(电脑,汽车)

【未完成】 2.8 车型经销商,车系经销商接口处理(汽车)

[完成,未上传到公网] 2.9 车系终端页车型列表数据只展示在售车型和停产在售车型(汽车)

[完成,未上传到公网] 2.10 车型库对比结果页对比逻辑修改(汽车)

[完成,未上传到公网] 2.11 车型库车型HTML 增加协议(汽车)

[完成,未上传到公网] 2.12 车型图库接口更改,增加图片个数统计,增加车系图形库接口(汽车)

[半成品,差接口] 2.13 通过车系id获得车型列表接口 价格 字段修改(汽车)

【未完成】 2.14 车系搜索接口增加(汽车)

【未完成】 2.15 询价界面接口增加(汽车)

【未完成】 2.16 车型界面参数修改(汽车)

【未完成】 2.19 车型库文章接口

2. mrobot的接口

mrobot自身的接口,由客户端调用

2.1 产品终端页点评分数参数修改(电脑)

   已经按需求增加,请求参数不变
   例子:
      http://mrobot.pconline.com.cn/v3/product/comments/473123

2.2 搜索贴子增加分页(汽车,电脑)

  请求方式get
  返回编码:UTF-8
  请求参数:
    q 搜索的关键词 ,中文用UTF-8编码
        forumId  论坛ID
    pageNo  分页 默认为第1页
    pageSize 每页的条数 默认为10
  Url :
         电脑http://mrobot.pconline.com.cn/v3/itbbs/search?q=%E4%BA%BA&forumId=768714&pageSize=2&pageNo=9
         汽车http://mrobot.pcauto.com.cn/v3/itbbs/search?q=%E4%BA%BA&forumId=768714&pageSize=2&pageNo=9
  范例: 
         电脑 http://mrobot.pconline.com.cn/v3/itbbs/search?q=%E4%BA%BA&forumId=768714&pageSize=2&pageNo=9
         汽车http://mrobot.pcauto.com.cn/v3/itbbs/search?q=%E4%BA%BA&forumId=768714&pageSize=2&pageNo=9
  返回:
        {
            "total": 230,
            "topicList": [
                {
                    "title": "激情中的平淡 小民警生活纪实",
                    "forumId": 768714,
                    "topicId": 15458678,
                    "userName": "水幻影",
                    "access": "2",
                    "replycount": "2",
                    "authorId": "12543625"
                },
                {
                    "title": "华强北购机,求攻略,防js",
                    "forumId": 768714,
                    "topicId": 15409605,
                    "userName": "onglu",
                    "access": "1",
                    "replycount": "1",
                    "authorId": "9412725"
                }
            ],
            "pageNo": 9,
            "pageSize": 2
        }

  备注:
       pageNo   当前第几页
      pageSize   每页的帖子数
      total   帖子总数
      title: 华强北购机,求攻略,防js,
      forumId: 论坛id
      topicId: 帖子id
      userName: 用户名
      access: 可访问
      replycount: 回复帖子数目
      authorId: 作者id

2.3 产品终端概述增加协议跳转(电脑)

   增加跳转协议 pcaction://pconline-product-album/${modelId}
    请求地址参数增加 ver 值为33,为了区别3.2版本
   例子:
      http://mrobot.pconline.com.cn/v3/product/abstact/485270?ver=33

2.4 产品库增加类别(电脑)(两个接口)

产品库首页有两个接口,第一个接口写死,第二个接口 首页推荐品牌分类接口
{
    "homeDirectory": [
        {
            "title": "手机通讯",
            "image": "1.png",
            "childs": [
                {
                    "title": "手机",
                    "url": "http://product.pconline.com.cn/mobile/",
                    "sid": "20937"
                },
                {
                    "title": "手机移动电源",
                    "url": "http://product.pconline.com.cn/movepower/",
                    "sid": "40314"
                },
                {
                    "title": "蓝牙耳机",
                    "url": "http://product.pconline.com.cn/lanyaerji/",
                    "sid": "35615"
                },
                {
                    "title": "对讲机",
                    "url": "http://product.pconline.com.cn/talkieandwalkie/",
                    "sid": "24537"
                },
                {
                    "title": "电话机",
                    "url": "http://product.pconline.com.cn/telephone/",
                    "sid": "26581"
                },
                {
                    "title": "集团电话/交换",
                    "url": "http://product.pconline.com.cn/netphone/",
                    "sid": "20837"
                },
                {
                    "title": "录音电话",
                    "url": "http://product.pconline.com.cn/dictaphone/",
                    "sid": "38494"
                },
                {
                    "title": "楼宇对讲系统",
                    "url": "http://product.pconline.com.cn/building_speak_system/",
                    "sid": "75132"
                },
                {
                    "title": "电话管理系统",
                    "url": "http://product.pconline.com.cn/tel_manage_sys/",
                    "sid": "76272"
                },
                {
                    "title": "电话录音系统",
                    "url": "http://product.pconline.com.cn/phonetapesystem/",
                    "sid": "26992"
                }
            ]
        },
        {
            "title": "数码相机",
            "image": "2.png",
            "childs": [
                {
                    "title": "相机",
                    "url": "http://product.pconline.com.cn/dc",
                    "sid": "20928"
                },
                {
                    "title": "镜头",
                    "url": "http://product.pconline.com.cn/lens/",
                    "sid": "35269"
                },
                {
                    "title": "滤镜",
                    "url": "http://product.pconline.com.cn/filter/",
                    "sid": "46610"
                },
                {
                    "title": "闪光灯",
                    "url": "http://product.pconline.com.cn/flash/",
                    "sid": "46722"
                },
                {
                    "title": "电池/充电器",
                    "url": "http://product.pconline.com.cn/battery_charger/",
                    "sid": "20913"
                },
                {
                    "title": "三脚架",
                    "url": "http://product.pconline.com.cn/spider_tripod/",
                    "sid": "39034"
                },
                {
                    "title": "摄影包",
                    "url": "http://product.pconline.com.cn/photographbag/",
                    "sid": "39035"
                },
                {
                    "title": "摄影周边设备",
                    "url": "http://product.pconline.com.cn/photo_zb/",
                    "sid": "68849"
                },
                {
                    "title": "摄像机磁带",
                    "url": "http://product.pconline.com.cn/dvtape/",
                    "sid": "29149"
                },
                {
                    "title": "清洁养护",
                    "url": "http://product.pconline.com.cn/cleaning/",
                    "sid": "79472"
                }
            ]
        },
        {
            "title": "平板电脑",
            "image": "2.png",
            "childs": [
                {
                    "title": "平板电脑",
                    "url": "http://product.pconline.com.cn/tabletpc/",
                    "sid": "79849"
                }
            ]
        },
        {
            "title": "笔记本",
            "image": "2.png",
            "childs": [
                {
                    "title": "笔记本",
                    "url": "http://product.pconline.com.cn/notebook/",
                    "sid": "20807"
                },
                {
                    "title": "笔记本CPU",
                    "url": "http://product.pconline.com.cn/notebook_cpu/",
                    "sid": "45038"
                },
                {
                    "title": "笔记本内存",
                    "url": "http://product.pconline.com.cn/notebook_ram/",
                    "sid": "35618"
                },
                {
                    "title": "笔记本电池",
                    "url": "http://product.pconline.com.cn/nb_battery/",
                    "sid": "58029"
                },
                {
                    "title": "笔记本硬盘",
                    "url": "http://product.pconline.com.cn/notebook_hdd/",
                    "sid": "35623"
                },
                {
                    "title": "散热设备",
                    "url": "http://product.pconline.com.cn/notebook_cooler/",
                    "sid": "81469"
                },
                {
                    "title": "笔记本电脑包",
                    "url": "http://product.pconline.com.cn/nbbag/",
                    "sid": "84914"
                },
                {
                    "title": "笔记本周边",
                    "url": "http://product.pconline.com.cn/notebook_zb/",
                    "sid": "20932"
                },
                {
                    "title": "台式机",
                    "url": "http://product.pconline.com.cn/pc/",
                    "sid": "20806"
                },
                {
                    "title": "一体电脑",
                    "url": "http://product.pconline.com.cn/easy_pc/",
                    "sid": "41766"
                },
                {
                    "title": "工作站",
                    "url": "http://product.pconline.com.cn/workstation/",
                    "sid": "20809"
                },
                {
                    "title": "准系统",
                    "url": "http://product.pconline.com.cn/barebone/",
                    "sid": "24596"
                },
                {
                    "title": "工控产品",
                    "url": "http://product.pconline.com.cn/gongkong/",
                    "sid": "20924"
                },
                {
                    "title": "瘦客户机",
                    "url": "http://product.pconline.com.cn/thin_client/",
                    "sid": "43616"
                }
            ]
        },
        {
            "title": "超极本",
            "image": "2.png",
            "childs": [
                {
                    "title": "超级本",
                    "url": "http://product.pconline.com.cn/ultrabook/",
                    "sid": "95585"
                }
            ]
        },
        {
            "title": "DIY硬件",
            "image": "2.png",
            "childs": [
                {
                    "title": "CPU",
                    "url": "http://product.pconline.com.cn/cpu/",
                    "sid": "20812"
                },
                {
                    "title": "显卡",
                    "url": "http://product.pconline.com.cn/vga/",
                    "sid": "20817"
                },
                {
                    "title": "主板",
                    "url": "http://product.pconline.com.cn/mb/",
                    "sid": "20811"
                },
                {
                    "title": "内存",
                    "url": "http://product.pconline.com.cn/memory/",
                    "sid": "20813"
                },
                {
                    "title": "硬盘",
                    "url": "http://product.pconline.com.cn/harddisk/",
                    "sid": "20814"
                },
                {
                    "title": "固态硬盘SSD",
                    "url": "http://product.pconline.com.cn/dianziyingpan/",
                    "sid": "42997"
                },
                {
                    "title": "显示器",
                    "url": "http://product.pconline.com.cn/lcd/",
                    "sid": "20950"
                },
                {
                    "title": "光驱/刻录机",
                    "url": "http://product.pconline.com.cn/writer/",
                    "sid": "20874"
                },
                {
                    "title": "声卡",
                    "url": "http://product.pconline.com.cn/sound/",
                    "sid": "20818"
                },
                {
                    "title": "PC电源",
                    "url": "http://product.pconline.com.cn/power/",
                    "sid": "20881"
                }
            ]
        },
        {
            "title": "硬件外设",
            "image": "2.png",
            "childs": [
                {
                    "title": "键盘",
                    "url": "http://product.pconline.com.cn/keyboard/",
                    "sid": "20973"
                },
                {
                    "title": "鼠标",
                    "url": "http://product.pconline.com.cn/mouse/",
                    "sid": "20820"
                },
                {
                    "title": "音箱",
                    "url": "http://product.pconline.com.cn/soundbox/",
                    "sid": "30129"
                },
                {
                    "title": "摄像头",
                    "url": "http://product.pconline.com.cn/pccamera/",
                    "sid": "20848"
                },
                {
                    "title": "鼠标垫",
                    "url": "http://product.pconline.com.cn/mouse_under/",
                    "sid": "20946"
                },
                {
                    "title": "硬盘/光驱盒",
                    "url": "http://product.pconline.com.cn/disk_cdrombox/",
                    "sid": "25521"
                },
                {
                    "title": "UPS电源",
                    "url": "http://product.pconline.com.cn/ups_power/",
                    "sid": "20864"
                },
                {
                    "title": "UPS电池",
                    "url": "http://product.pconline.com.cn/ups_battery/",
                    "sid": "35290"
                },
                {
                    "title": "单机多用户/拖",
                    "url": "http://product.pconline.com.cn/user_system/",
                    "sid": "26511"
                },
                {
                    "title": "硬盘保护卡",
                    "url": "http://product.pconline.com.cn/disksavecard/",
                    "sid": "21004"
                },
                {
                    "title": "拷贝机",
                    "url": "http://product.pconline.com.cn/copymachine/",
                    "sid": "21006"
                }
            ]
        },
        {
            "title": "数码产品",
            "image": "2.png",
            "childs": [
                {
                    "title": "耳机",
                    "url": "http://product.pconline.com.cn/earphone/",
                    "sid": "20990"
                },
                {
                    "title": "MID",
                    "url": "http://product.pconline.com.cn/tabletmid/",
                    "sid": "87949"
                },
                {
                    "title": "MP4",
                    "url": "http://product.pconline.com.cn/mp4/",
                    "sid": "25850"
                },
                {
                    "title": "MP3",
                    "url": "http://product.pconline.com.cn/mp3/",
                    "sid": "20947"
                },
                {
                    "title": "U盘",
                    "url": "http://product.pconline.com.cn/flashdisk/",
                    "sid": "20930"
                },
                {
                    "title": "移动硬盘",
                    "url": "http://product.pconline.com.cn/mobiledisk/",
                    "sid": "43376"
                },
                {
                    "title": "存储卡",
                    "url": "http://product.pconline.com.cn/cardreader/",
                    "sid": "20974"
                },
                {
                    "title": "电子书",
                    "url": "http://product.pconline.com.cn/ebook/",
                    "sid": "20961"
                },
                {
                    "title": "录音笔",
                    "url": "http://product.pconline.com.cn/record/",
                    "sid": "20945"
                },
                {
                    "title": "数码相框",
                    "url": "http://product.pconline.com.cn/photodisplayer/",
                    "sid": "44176"
                },
                {
                    "title": "游戏机",
                    "url": "http://product.pconline.com.cn/game/",
                    "sid": "44230"
                },
                {
                    "title": "麦克风",
                    "url": "http://product.pconline.com.cn/microphone/",
                    "sid": "64409"
                },
                {
                    "title": "手写画板",
                    "url": "http://product.pconline.com.cn/handinput/",
                    "sid": "20902"
                },
                {
                    "title": "存储卡/读卡器",
                    "url": "http://product.pconline.com.cn/cardreader/",
                    "sid": "20974"
                },
                {
                    "title": "数码伴侣",
                    "url": "http://product.pconline.com.cn/digipartner/",
                    "sid": "26188"
                },
                {
                    "title": "游戏周边设备",
                    "url": "http://product.pconline.com.cn/gameside/",
                    "sid": "20877"
                },
                {
                    "title": "显示设备配件",
                    "url": "http://product.pconline.com.cn/lcd_accessories/",
                    "sid": "51453"
                },
                {
                    "title": "眼镜影院",
                    "url": "http://product.pconline.com.cn/cinemaglasses/",
                    "sid": "92859"
                },
                {
                    "title": "3D眼镜",
                    "url": "http://product.pconline.com.cn/3dglasses/",
                    "sid": "92780"
                }
            ]
        },
        {
            "title": "数字家电",
            "image": "2.png",
            "childs": [
                {
                    "title": "液晶电视",
                    "url": "http://product.pconline.com.cn/lcd_tv/",
                    "sid": "39957"
                },
                {
                    "title": "等离子电视",
                    "url": "http://product.pconline.com.cn/plasma/",
                    "sid": "39956"
                },
                {
                    "title": "冰箱",
                    "url": "http://product.pconline.com.cn/icebox/",
                    "sid": "49651"
                },
                {
                    "title": "空调",
                    "url": "http://product.pconline.com.cn/air_condition/",
                    "sid": "49955"
                },
                {
                    "title": "洗衣机",
                    "url": "http://product.pconline.com.cn/washer/",
                    "sid": "50210"
                },
                {
                    "title": "抽油烟机",
                    "url": "http://product.pconline.com.cn/hood/",
                    "sid": "88029"
                },
                {
                    "title": "微波炉",
                    "url": "http://product.pconline.com.cn/microwave_oven/",
                    "sid": "59103"
                },
                {
                    "title": "电饭煲",
                    "url": "http://product.pconline.com.cn/rice_cooker/",
                    "sid": "58142"
                },
                {
                    "title": "电热水器",
                    "url": "http://product.pconline.com.cn/water_heater/",
                    "sid": "88034"
                },
                {
                    "title": "抽湿机",
                    "url": "http://product.pconline.com.cn/choushiji/",
                    "sid": "48229"
                },
                {
                    "title": "吸尘器",
                    "url": "http://product.pconline.com.cn/vacuum_cleaner/",
                    "sid": "88009"
                },
                {
                    "title": "豆浆机",
                    "url": "http://product.pconline.com.cn/soybean_milk_extractor/",
                    "sid": "58170"
                },
                {
                    "title": "电风扇",
                    "url": "http://product.pconline.com.cn/fan/",
                    "sid": "88010"
                },
                {
                    "title": "净化清新器",
                    "url": "http://product.pconline.com.cn/purifier/",
                    "sid": "60550"
                },
                {
                    "title": "高清播放机",
                    "url": "http://product.pconline.com.cn/hd_player/",
                    "sid": "47897"
                },
                {
                    "title": "家庭影院",
                    "url": "http://product.pconline.com.cn/family_theater/",
                    "sid": "40007"
                },
                {
                    "title": "音响",
                    "url": "http://product.pconline.com.cn/hifi/",
                    "sid": "41358"
                },
                {
                    "title": "DVD影碟机",
                    "url": "http://product.pconline.com.cn/videodisc/",
                    "sid": "38697"
                }
            ]
        },
	{
		"title":"摄像机",
		"image":"3.png",
		"childs":[
		    {
			"title":"摄像机",
			"url":"http://product.pconline.com.cn/dv",
			"sid":"20912"
		    }
		]
	},
        {
            "title": "网络设备",
            "image": "2.png",
            "childs": [
                {
                    "title": "无线路由器",
                    "url": "http://product.pconline.com.cn/wireless_router/",
                    "sid": "39356"
                },
                {
                    "title": "无线网卡",
                    "url": "http://product.pconline.com.cn/wireless_card/",
                    "sid": "39357"
                },
                {
                    "title": "无线上网卡",
                    "url": "http://product.pconline.com.cn/wifi_card/",
                    "sid": "26221"
                },
                {
                    "title": "路由器",
                    "url": "http://product.pconline.com.cn/router/",
                    "sid": "20851"
                },
                {
                    "title": "交换机",
                    "url": "http://product.pconline.com.cn/switch/",
                    "sid": "20852"
                },
                {
                    "title": "集线器",
                    "url": "http://product.pconline.com.cn/hub/",
                    "sid": "20853"
                },
                {
                    "title": "网卡",
                    "url": "http://product.pconline.com.cn/netcard/",
                    "sid": "20856"
                },
                {
                    "title": "布线产品",
                    "url": "http://product.pconline.com.cn/line/",
                    "sid": "20857"
                },
                {
                    "title": "光纤设备",
                    "url": "http://product.pconline.com.cn/optical/",
                    "sid": "20858"
                },
                {
                    "title": "防火墙",
                    "url": "http://product.pconline.com.cn/firewall/",
                    "sid": "20935"
                },
                {
                    "title": "服务器",
                    "url": "http://product.pconline.com.cn/server/",
                    "sid": "20808"
                }
            ]
        },
        {
            "title": "企业办公",
            "image": "2.png",
            "childs": [
                {
                    "title": "多功能一体机",
                    "url": "http://product.pconline.com.cn/printer_dgn/",
                    "sid": "20970"
                },
                {
                    "title": "喷墨打印机",
                    "url": "http://product.pconline.com.cn/printer_ink/",
                    "sid": "20842"
                },
                {
                    "title": "激光打印机",
                    "url": "http://product.pconline.com.cn/printer_laser/",
                    "sid": "20843"
                },
                {
                    "title": "照片打印机",
                    "url": "http://product.pconline.com.cn/printer_dye-sublimation/",
                    "sid": "83629"
                },
                {
                    "title": "针式打印机",
                    "url": "http://product.pconline.com.cn/printer_zs/",
                    "sid": "20841"
                },
                {
                    "title": "复印机",
                    "url": "http://product.pconline.com.cn/copy/",
                    "sid": "20832"
                },
                {
                    "title": "大幅面打印机",
                    "url": "http://product.pconline.com.cn/largeformat_printers/",
                    "sid": "20865"
                },
                {
                    "title": "扫描仪",
                    "url": "http://product.pconline.com.cn/scanner/",
                    "sid": "20846"
                },
                {
                    "title": "碳带/色带",
                    "url": "http://product.pconline.com.cn/ribbon/",
                    "sid": "20861"
                },
                {
                    "title": "墨盒/墨水",
                    "url": "http://product.pconline.com.cn/ink_box/",
                    "sid": "20863"
                },
                {
                    "title": "硒鼓/碳粉",
                    "url": "http://product.pconline.com.cn/xigutanfen/",
                    "sid": "9283"
                },
                {
                    "title": "打印介质",
                    "url": "http://product.pconline.com.cn/stamp_medium/",
                    "sid": "20870"
                },
                {
                    "title": "打卡机",
                    "url": "http://product.pconline.com.cn/card_punches/",
                    "sid": "20836"
                },
                {
                    "title": "碎纸机",
                    "url": "http://product.pconline.com.cn/shredder/",
                    "sid": "20833"
                },
                {
                    "title": "投影机",
                    "url": "http://product.pconline.com.cn/projection/",
                    "sid": "20834"
                },
                {
                    "title": "投影灯泡",
                    "url": "http://product.pconline.com.cn/projection_dp/",
                    "sid": "52689"
                },
                {
                    "title": "投影仪",
                    "url": "http://product.pconline.com.cn/projector/",
                    "sid": "58389"
                },
                {
                    "title": "投影配件",
                    "url": "http://product.pconline.com.cn/projection_pj/",
                    "sid": "26191"
                }
            ]
        }
    ]
}

首页推荐品牌分类接口
请求地址:
http://mrobot.pconline.com.cn/v3/product/brandNameTopv33

返回值
{
    "手机通讯": [
        "手机",
        "移动电源",
        "蓝牙相机"
    ],
    "数码相机": [
        "卡片",
        "单反",
        "单电"
    ],
    "笔记本": [
        "笔记本周边",
        "一体电脑"
    ],
    "DIY": [
        "CPU",
        "显卡",
        "固态硬盘"
    ],
    "超级本": [
        "联想",
        "华硕",
        "宏碁"
    ],
    "平板电脑": [
        "iPad",
        "安卓平板",
        "WP平板"
    ],
    "数码产品": [
        "耳机",
        "移动硬盘",
        "游戏机"
    ],
    "硬件外设": [
        "键盘",
        "鼠标",
        "音箱"
    ],
    "数字家电": [
        "电视",
        "音响",
        "家庭影院"
    ],
    "摄像机": [
        "索尼",
        "松下",
        "佳能"
    ],
    "网络设备": [
        "无限路由",
        "上网卡"
    ],
    "企业办公": [
        "投影仪",
        "打印机",
        "扫描仪"
    ]
}


2.5 广告HTML界面增加参数(电脑,汽车)

(新增)Html界面新增三个参数
showPre:(int) ;   0:不显示 1:显示
showNext:(int)   0:不显示  1:显示
Orientation:(int): 1:正立,2:倒立   3:左向横屏 4:右向横屏
首页焦点图内嵌广告页
专题页内嵌广告页
文章终端页标题下方广告


http://xxx.xxxxx.xxxx/xxxxxx?pre=0&next=1&orient=0
<script>
function getURLParameter(findKey){
        var href=window.location.href;
        var params=href.slice(href.indexOf("?")+1,href.length);
        var param=params.split("&");
        for(var i  in param){
                var keyVal=param[i].split("=");
                var key=keyVal[0],val=keyVal[1];
                if(key==findKey){
                        return val;
                }
        };
        return "";
}

function showPre(){
        return getURLParameter("pre");
}
function showNext(){
        return getURLParameter("next");
}
function Orientation(){
        return getURLParameter("orient");
}

</script>


2.6 首页头条文章增加字段(电脑,汽车)


注释:若在返回json中增加to-target,需要数据库增加字段,前后台都需要更改,并且设置麻烦。因此在此处增加more


焦点图增加协议:

汽车http://mrobot.pcauto.com.cn/v2/cms/channels/1
电脑http://mrobot.pconline.com.cn/v2/cms/channels/1
在topFocus字段 to-uri增加跳转到“更多”栏目的协议


汽车pcautobrowser://more/
电脑pconlinebrowser://more/



"topFocus": [

    {
        "title": "testin",
        "updateAt": 1353859200000,
        "to-uri": "pconlinebrowser://more/",
        "seq": 4,
        "image": "http://img.pconline.com.cn/images/upload/upc/tx/wallpaper/1210/29/c2/14774698_1351524499502_320x480.jpg",
        "vc-uri": "http://192.168.23.101/show/4",
        "cc-uri": "http://192.168.23.101/click/4"
    },


2.7 产品列表参数显示个数修改(电脑,汽车)

5、产品列表只显示默认的两个参数,字数省略的规则和现有的一致,
  已经改好

2.8 车型经销商,车系经销商接口处理(汽车)

2.9 车系终端页车型列表数据只展示在售车型和停产在售车型(汽车)

请求方式get
请求参数:
  SerialId 车系id

   不显示停产车型和未上市车型
url:
    http://mrobot.pcauto.com.cn/v3/price/getModelListBySerialId/{serialId}
范例
   http://mrobot.pcauto.com.cn/v3/price/getModelListBySerialId/234

返回:


{
    "brandId":20,
    "serialGroupName":"宝马(进口)",
    "bbsId":"17448",
    "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1206/24/c9/12108937_12108937_1340536858000_120x90.jpg",
    "kind":"SUV",
    "priceRange":"123~125万",
    "modelTotal":"5",
    "advantage":"好啊好",
    "disadvatage":"衰啊衰",
    "level": "这是级别",
    "displacement": "这是排量",
    "brand": "这是品牌名",
    "gearbox": "这是变速箱",
    "structure": "这是车身结构",
    "data":[
        {
            "id":"14782",
            "title":"宝马X5 2011款 xDrive35i 豪华型",
            "price":"100500",
            "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1206/24/c9/12108937_12108937_1340536858000_120x90.jpg",
            "status":"在售"
        },
        {
            "id":"17365",
            "title":"宝马X5 2011款 xDrive35i M运动型",
            "price":"1049000",
            "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1206/24/c9/12108937_12108937_1340536858000_120x90.jpg",
            "status":"停产在售"
        }
    ]
}


brandId 品牌ID
bbsId 对应论坛id
photo 图片链接
kind 级别
priceRange官方报价
modelTotal 车型总数
advantage 优点
disadvantage缺点
id 车型id
title 车型名称
price 报价
status 在售 停产等
brand  品牌名
level 级别
displacement 排量
structure 车身结构
gearbox 变速箱

2.10 车型库对比结果页对比逻辑修改(汽车)

请求方式get
请求参数:
      id1  左边产品id   (可选)
      id2  右边产品id   (可选)

      id1,id2可以同时有,可以只有其中一个,可以两个都没有


请求地址:
      http://mrobot.pcauto.com.cn/v3/price/detailComparev33

范例:
      http://mrobot.pcauto.com.cn/v3/price/detailComparev33?id1=21334&id2=18224

javascript:函数
隐藏相同/显示所有参数   switchEqualParam()

2.11 车型库车型概述HTML 增加图库跳转协议(汽车)

   增加跳转协议 pcaction://pcauto-model-album
    
   请求地址与之前相比,多了个v33
   例子:
      http://mrobot.pcauto.com.cn/v3/price/modelsv33/21334

2.12 车型图库接口更改,增加图片个数统计,增加车系图形库接口(汽车)


方式get
请求参数:
  serialId 车系id  注意,这是单独的接口  , 返回格式一样的
    modelId  车型id  注意,这是单独的接口   , 返回格式一样的
  Num 图片张数  
Url: 
   http://mrobot.pcauto.com.cn/v3/price/getPhotoBySerialId?Num={Num}&serialId={serialId}
   http://mrobot.pcauto.com.cn/v3/price/getPhotoBySerialId?Num={Num}&modelId={modelId}

范例:
   http://mrobot.pcauto.com.cn/v3/price/getPhotoBySerialId?Num=2&serialId=7610
   http://mrobot.pcauto.com.cn/v3/price/getPhotoByModelId?Num=2&modelId=18224



返回:
{
    "data":[
        {
            "total":32,
            "photos":[
                {
                    "smallPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/02/c4/12668173_12668173_1343897021116_120x90.jpg",
                    "bigPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/02/c4/12668173_12668173_1343897021116_600x450.jpg"
                },
                {
                    "smallPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/02/c4/12668173_12668173_1343897021116_120x90.jpg",
                    "bigPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/02/c4/12668173_12668173_1343897021116_600x450.jpg"
                }
            ],
            "name":"外观",
            "typeId":1
        },
        {
            "total":32,
            "photos":[
                {
                    "smallPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/02/c4/12668173_12668173_1343897061120_120x90.jpg",
                    "bigPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/02/c4/12668173_12668173_1343897061120_600x450.jpg"
                },
                {
                    "smallPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/02/c4/12668173_12668173_1343897061120_120x90.jpg",
                    "bigPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/02/c4/12668173_12668173_1343897061120_600x450.jpg"
                }
            ],
            "name":"内饰",
            "typeId":2
        },
        {
            "total":32,
            "photos":[
                {
                    "smallPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1203/20/c5/10974798_10974798_1332236011718_120x90.jpg",
                    "bigPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1203/20/c5/10974798_10974798_1332236011718_600x450.jpg"
                },
                {
                    "smallPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1203/20/c5/10974798_10974798_1332236011718_120x90.jpg",
                    "bigPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1203/20/c5/10974798_10974798_1332236011718_600x450.jpg"
                }
            ],
            "name":"其他细节",
            "typeId":3
        },
        {
            "total":32,
            "photos":[
                {
                    "smallPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1108/05/c14/8557626_8557626_1312534887875_120x90.jpg",
                    "bigPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1108/05/c14/8557626_8557626_1312534887875_600x450.jpg"
                },
                {
                    "smallPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1108/05/c14/8557626_8557626_1312534887875_120x90.jpg",
                    "bigPhoto":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1108/05/c14/8557626_8557626_1312534887875_600x450.jpg"
                }
            ],
            "name":"官方图",
            "typeId":4
        }
    ]
}

typeId 对应“外观”,“内饰”等分类
name 分类名称
photos(最多返回6组图片)
	smallPhoto 列表显示用小图
	bigPhoto 图片客户端显示用大图
total  对应类别的图片总数


2.13 通过车系id获得车型列表接口 价格 字段修改(汽车)

请求方式get
请求参数:
  serialId 车系id

url:
    http://mrobot.pcauto.com.cn/v3/price/getModelListBySerialId/{serialId}
范例
   http://mrobot.pcauto.com.cn/v3/price/getModelListBySerialId/234

返回:


{
    "brandId":20,
    "serialGroupName":"宝马(进口)",
    "bbsId":"17448",
    "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1206/24/c9/12108937_12108937_1340536858000_120x90.jpg",
    "kind":"SUV",
    "priceRange":"123~125万",
    "modelTotal":"5",
    "advantage":"好啊好",
    "disadvatage":"衰啊衰",
    "level": "这是级别",
    "displacement": "这是排量",
    "brand": "这是品牌名",
    "gearbox": "这是变速箱",
    "structure": "这是车身结构",
    "data":[
        {
            "id":"14782",
            "title":"宝马X5 2011款 xDrive35i 豪华型",
            "price":"100500",
            "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1206/24/c9/12108937_12108937_1340536858000_120x90.jpg",
            "status":"在售"
        },
        {
            "id":"17365",
            "title":"宝马X5 2011款 xDrive35i M运动型",
            "price":"1049000",
            "photo":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1206/24/c9/12108937_12108937_1340536858000_120x90.jpg",
            "status":"停产在售"
        }
    ]
}


brandId 品牌ID
bbsId 对应论坛id
photo 图片链接
kind 级别
priceRange官方报价
modelTotal 车型总数
advantage 优点
disadvantage缺点
id 车型id
title 车型名称
price 报价
status 在售 停产等
brand  品牌名
level 级别
displacement 排量
structure 车身结构
gearbox 变速箱

2.14 车系搜索接口增加(汽车)

2.15 询价界面接口增加(汽车)

2.16 车型界面参数修改(汽车)

2.17 产品库的文章中,将评测文章置顶(电脑)

请求方式:get 
是否需要登录:否 
请求参数: 
    modelId:产品id 
   pageNo:第几页
    pageSize:分页数
Url:
    http://mrobot.pconline.com.cn/v3/product/information/{modelId}
范例:
    http://mrobot.pconline.com.cn/v3/product/information/501690

返回参数
{
    "total": 136,
    "pageCount": 68,
    "pageNo": 1,
    "pageSize": 2,
    "articleList": [
        {
            "id": "2893356",
            "title": "不为损失?分析师曝光苹果告三星真正动机",
            "image": "http://img0.pconline.com.cn/pconline/1208/08/g_2893356_1344389815827.jpg",
            "channel": "相关文章"
        },
        {
            "id": "2893491",
            "title": "市场销量达到7成! iPad霸占中国平板领域",
            "image": "http://img0.pconline.com.cn/pconline/1208/08/g_2893491_1344392560706.jpg",
            "channel": "相关文章"
        }
    ],
    "productId": 501690
}


id 文章id
title 标题
channel 文章栏目
total  评论数
pageCount 总页数
image 导读图






2.18 电脑网对比页面


请求方式get
请求参数:
      id1  左边产品id   (可选)
      id2  右边产品id   (可选)

      id1,id2可以同时有,可以只有其中一个,可以两个都没有


请求地址:
       http://mrobot.pconline.com.cn/v3/product/detailComparev33

范例:
      http://mrobot.pconline.com.cn/v3/product/detailComparev33?id1=501690&id2=501690


2.19 车型库文章接口

行情文章地区接口
请求方式get
请求参数:
         无
URL
      http://mrobot.pcauto.com.cn/v3/price/getArticlePriceAreaId
返回值

{
    "A": [
        {
            "areaId": "323",
            "city": "鞍山"
        }
    ],
    "B": [
        {
            "areaId": "482",
            "city": "包头"
        },
        {
            "areaId": "277",
            "city": "保定"
        },
        {
            "areaId": "2",
            "city": "北京"
        }
    ]
}

行情文章接口


请求方式get
请求参数:
  serialId 车系id
  pageNo 默认0,第几页
  pageSize 默认0,每页多少篇文章,0则返回所有相关文章
URL
    http://mrobot.pcauto.com.cn/v3/price/getArticlePriceListBySerialId/{serialId}?pageNo={pageNo}&pageSize={pageSize}&areaId={areaId}
范例:
    http://mrobot.pcauto.com.cn/v3/price/getArticlePriceListBySerialId/100?pageNo=1&pageSize=20&areaId=3

  返回:
{
	"pageCount": "251",
	"pageNo": "1",
	"data": [{
		"commentNum": "0",
		"id": "2066535",
		"title": "信达通宝全新BMW3系8月11日会展中心强势登鹭",
		"image": "http:\/\/img0.pcauto.com.cn\/pcauto\/1208\/07\/2066535_a.jpg",
		"channel": "汽车报价"
	},
	{
		"commentNum": "0",
		"id": "2062789",
		"title": "BMW关怀-制动盘保养免工时费",
		"image": "http:\/\/img0.pcauto.com.cn\/pcauto\/1208\/03\/2062789_2.jpg",
		"channel": "汽车报价"
	}],
	"pageSize": "10"
}

pageCount:总共页数
id 文章id
title 标题
channel 文章栏目
commentNum 评论数
Image 导读图

3 配合的接口(车型库接口)

此部分的接口由车型库的同事配合

3.01通过车系id列出车系id列表接口更改

  请求方式get
  返回编码:UTF-8
  需求:
  返回参数增加:车系部分增加品牌,级别,排量,车身结构,变速箱五个字段
  接口:
  http://price.pcauto.com.cn/interface/iphone/model_list_v2.jsp?serialId=7032
  
  请求参数:
  看上面需求
  返回:
  看上面需求
  备注:
  

3.02车型经销商接口更改

  请求方式get
  返回编码:UTF-8
  需求:
    1.请求参数增加:serialId。增加参数后,配合原有的参数,则有:
  若请求参数中有serialId,则返回车系经销商的数据
                          若请求参数中有modelId,则返回车型经销商的数据
  2.返回参数增加:车型经销商的电话增加400开头的电话,字段名称为dealerPhone400
  3.返回参数增加:增加主营品牌字段,字段名称为mainBrand
  4.返回参数增加:经纬度信息:字段名称为(这个和你们经纬度字段名一致吧)	
  接口:
  http://price.pcauto.com.cn/interface/iphone/dealer_page_list.jsp?modelId=21334&pageSize=6&pageNo=1
  
  请求参数:
  看上面需求
  返回:
  看上面需求
  备注:
  

3.03图片库顺序 接口更改

  请求方式get
  返回编码:UTF-8
  需求:
  
  返回参数修改:车型图库图片接口的顺序要求与web版的顺序一致
  接口:http://price.pcauto.com.cn/interface/iphone/photo_page_list.jsp?typeId=1&modelId=21497&pageSize=1000&pageNo=1
  Web版:
  http://price.pcauto.com.cn/m21497/
  
  返回参数修改:车系图库图片接口的顺序要求与web版的顺序一致
  
  接口:http://price.pcauto.com.cn/interface/iphone/photo_page_list.jsp?typeId=1&serialGroupId=424&pageSize=1000&pageNo=1
  Web版:
  http://price.pcauto.com.cn/sg424/
  
  请求参数:
  不变
  返回:
    顺序调整,与网页上的顺序一致
  备注:
  

3.04新增加搜索车系接口

  请求方式get
  返回编码:UTF-8
  请求参数:
    keyword  搜索的关键词 ,中文用UTF-8编码
    pageNo  分页 默认为第1页
    pageSize 每页的条数 默认为25
  Url :
    待定
  范例: 
    待定
  返回:
  {
    "total": 93,
    "pageCount": 4,
    "pageNo": "1",
    "pageSize": 25,
    "data": [
      {
        "serialId": "14783",
        "title": "宝马X5",
        "price": "896000",
        "photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1102/14/c4/6742367_6742367_1297671905629_120x90.jpg",
        "kind": "SUV"
      },
      {
        "serialId": "15763",
        "title": "宝马1系",
        "price": "368000",
        "photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1011/24/c6/5983621_5983621_1290598784781_120x90.jpg",
        "kind": "紧凑型车"
      }
    ]
  }
  
  备注:
      serialId:  车系id
      title: 车系名称
      price:  官方价
      photo:  图片
      kind: 级别

3.05新增加询价具体车型接口省份id列表接口

  请求方式get
  返回编码:UTF-8
  请求参数:
    无
  Url :
  待定
  范例: 
  待定
  返回:
  {
    "31": {
      "province-name": "广东",
      "city": {
        "1": "广州"
        "2": "深圳"
      }
    }
  }
  
  备注:
  31为省份id
  1,2 为城市id
  

3.06新增加询价具体车型接口

  请求方式post
  返回编码:UTF-8
  请求参数:
  manufacturerId	品牌id  (选填)
  serialGroupId	车系id  (选填)
  dealerId	  经销商id  (选填) 若选择则询问具体经销商,否则多个经销商一起问
  modelId	 车型id   (必填)
  provinceId	省份id  (必填)
  regionId	 城市id  (必填)
  name	姓名  (必填)
  phone	联系电话  (必填)
  
  Url :
    待定
  范例: 
    待定
  返回:
  {
  "stats":"ok",
  "msg":"发送成功"
  }
  stats发送状态,成功为ok,失败为error,
  msg中显示提示的信息 ,例如必填字段未填,或者其他必要的提示等

  备注:
  Web版页面:
  http://price.pcauto.com.cn/dealer/commorders/order.jsp?ad=3342&did=27069&sgid=98

4. 测试环境接口配置

1.PC端:HOST指向戴裕文的机器 192.168.23.101 mrobot.pconline.com.cn

2.手机端:wifi连链OA,改wifi代理为192.168.23.101 端口8888

5. 修改历史

2012-11-16:

-接口第一版

Attachments