| Version 66 (modified by oujianqiang, 11 years ago) (diff) |
|---|
Table of Contents
1.基本约定
接口通用参数 req_enc=utf-8(必须放url后面) resp_enc=utf-8(必须放url后面) common_session_id=xxxx(以cookies中的优先) 接口URL: 接口URL 必填参数:参数名=xxx(多种情况用括号解析) 非必填参数:参数名=xxx(多种情况用括号解析) 说明文档参数:添加某特定参数可以直接看接口文档 是否需要登录:是,否 返回格式:json,ssi,xml 缓存方式:接口缓存(接口中返回的响应头里面的 Cache-Control),对象缓存() 缓存时间:缓存时间 返回结果:结果可能情况
代理环境说明:
192.168.10.198 端口为 1080 连的是v36的测试环境(192.168.74.36)
192.168.10.199 端口为 1080 连的是dev40的开发环境(192.168.75.40)
接口列表
=======================================================功能优化==============================================
========所有购车计算的协议按参数传递=====
原协议是:pcautobuy://auto-calculator/{modelId}?modelName={modelName}&price={price}
现协议修改如下:pcautobuy://auto-calculator/{modelId}?modelName={modelName}&price={minPrice}&paiLiang={paiLiang}&jrjBzzw={jrjBzzw}&introduce={introduce}
参数说明如下:modelId:车型ID modelName:车型名称 price:最低价格 paiLiang:排量 jrjBzzw:座位数 introduce:1为进口0表不是进口
2.1 车型参配
mrobot请求url:http://mrobot.pcauto.com.cn/buy/price/modelDetail/{modelId}?areaId=1&fmt=json
现应用接口:
http://price.pcauto.com.cn/interface/iphone/atom/price/model_overview.jsp?mid={modelId} 基础数据
http://price.pcauto.com.cn/interface/iphone/atom/price/model_params.jsp?mid=34224 参数
原接口:
http://price.pcauto.com.cn/interface/iphone/model_detail.jsp?mid=34224
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| modelId | String | Y | 车型ID |
| areaId | String | Y | 地区id |
返回结果:
{
"baseParameter":
[
"厂商",
"一汽奥迪",
"级别",
"中大型车",
"上市时间",
"2014-01",
"发动机"...],
"gfPrice": "38.3万",
"groupNameArray": [
"询价订单",
"价格",
"基本参数",
"车身",
"发动机",
"电动机",
"变速箱",
"底盘转向",
...
],
"kind": "中大型车",
"manufacturer": "一汽奥迪",
"minPrice": "5.75万",
"modelName": "奥迪A6L 2014款 2.0 TFSI 手动基本型",
"price": "38.3",
"serialGorup": "奥迪A6L",
"serialGorupId": 4313,
"shortName": "2.0 TFSI 手动基本型",
"state": "在售",
"total": "0",
"url": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/21/c7/13077074_13077074_1345530200671_80x60.jpg",
"url_120x90": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/21/c7/13077074_13077074_1345530200671_120x90.jpg",
"url_400x300": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/21/c7/13077074_13077074_1345530200671_400x300.jpg",
"groupNameArray":[
"询价订单",
"价格",
"基本参数",
"车身",
"发动机",
"电动机"...],
"gfprice":"38.3万",
"brand":"奥迪",
"detail":[ {
"groupDetail": [
"全国4S店",
"0笔"
],
"groupName": "询价订单"
}......]
}
2.2 我要优惠
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/s/auto/buy/v1.2/getPromotion.xsp?v=1.1.0&modelId=20062&modelName=奥迪&serialId=4313&areaId=1&dealerId=65469&name=tt&tel=13588888888&appKey=34ca62060a1474350000052f&chId=app_store&devId=cb2039424107a8f6d3847fd390d81e60ba7ab516&referer=sg_discount
现应用接口:
http://price.pcauto.com.cn/dealer/interface/order/recommend_dealer.jsp?rid=" + areaId + "&sgid=" + serialId + "&type=0 http://mrobot.pcauto.com.cn/v3/price/provinceCityList城市数据
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| modelId | int | Y | 车型ID |
| modelName | int | Y | 车型名称 |
| areaId | int | Y | 地区id |
| serialId | int | Y | 车系id |
| dealerId | int | N | 经销商id |
| name | String | N | 提交名称 |
| tel | String | N | 提交电话号码 |
| appKey | String | N | 魔方appKey |
| chId | String | N | 设备类型 |
| devId | int | N | 设备ID |
| referer | String | N | 备注 |
| v | String | N | 版本号 |
2.3优惠详情
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/s/auto/buy/v1.2/promotionDetail.xsp?marketId=7033340&modelId=33314
现应用接口:
http://price.pcauto.com.cn/interface/iphone/atom/dealer/dealer_market_info_json.jsp?marketId={marketId}+&modelId={modelId}
http://price.pcauto.com.cn/interface/iphone/atom/dealer/dealer_market_model_json.jsp?marketId={marketId}
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| modelId | int | Y | 车型ID |
| marketId | int | Y | 优惠ID |
2.4 车型列表
mrobot请求url:http://mrobot.pcauto.com.cn/buy/price/getModelListBySerialIdv12/{serialGroupId}?pageNo=1&pageSize=20&areaId=1
现应用接口:
http://price.pcauto.com.cn/interface/iphone/atom/price/serial_group_basic_json.jsp?serialGroupId=8670 http://price.pcauto.com.cn/interface/iphone/atom/price/model_list_by_sg_json.jsp?serialGroupId=8670 http://price.pcauto.com.cn/interface/iphone/atom/dealer/model_list_news_price_json.jsp?serialGroupId=8670&rId=1;
[BR]原mrobot接口:http://mrobot.pcauto.com.cn/v3/price/getModelListBySerialId_v4/8670?pageNo=1&pageSize=20&areaId=1
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| serialGroupId | int | Y | 车型ID |
| areaId | int | Y | 地区ID |
[BR]返回结果:
{
"advantage": "动力输出流畅,后段爆发力足,整体隔音优秀",
"bbsId": "17365",
"brand": "奥迪",
"brandId": "1",
"disadvatage": "后排腿部空间和头部空间较为局促",
"displacement": "1.4T 2.0T",
"gearbox": "手动 双离合",
"kind": "紧凑型SUV",
"manufacturer": "一汽奥迪",
"manufacturerId": "1",
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1410/14/c4/39635392_39635392_1413256391078_120x90.jpg",
"photoTotal": 2501,
"photo_400x300": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1410/14/c4/39635392_39635392_1413256391078_400x300.jpg",
"priceRange": "24.98~42.88万",
"sections": [
{
"data": [
{
"config": "6挡手动 前置后驱 ",
"id": "31830",
"minPrice": "暂无报价",
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1304/15/c7/19883643_1366018495192_120x90.jpg",
"pl": " 2.0",
"price": "暂无报价",
"state": "即将上市",
"status": "即将上市",
"title": "2014款 2.0T 尊享型"
},
{
"config": "6挡手动 前置后驱 ",
"id": "31831",
"minPrice": "暂无报价",
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1404/25/c0/33539028_1398389800459_120x90.jpg",
"pl": " 2.0",
"price": "暂无报价",
"state": "即将上市",
"status": "即将上市",
"title": "2014款 2.0T 旗舰型"
}
],
"serialGroupName": "奥迪Q3",
"sgAverageScore": 4.33,
"shareUrl": "http://price.pcauto.com.cn/sg8670/",
"structure": "SUV"
}
2.5 优惠列表
PS:(加多了一个areaId参数,models里及里层的dealers里面添加totalPrice,giftPackage,modelType)
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/s/auto/buy/v1.2/promotionList.xsp?areaId={}&pageNo=1&pageSize=20&sgId={serialId}&mfId={mfId}&modelId={modelId}
现应用接口:
http://price.pcauto.com.cn/dealer/interface/app/market_groupby_model_json.jsp?pageNo=" + pageNo + "&pageSize=" + pageSize 基础数据包含models,dealers 增加三个字段:totalPrice全款购车 giftPackage2 礼包 modelType //现车情况 amelistRange(// 销售范围,0:本市,1:本省,2:全国,3:售多市(用户自定义的,不作显示))出现非约定值 http://price.pcauto.com.cn/interface/iphone/atom/price/model_calculator_basic_json.jsp?mIds="+modelIdStr
[BR]原mrobot接口:http://mrobot.pcauto.com.cn/buy/price/promotionList?pageNo=1&pageSize=10
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:60
说明:
"giftPackage2": {
"giftPackage": "",==》礼包内容
"giftPrice": "",==》多少价格
"otherGift": ""==》自定义内容
}
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| areaId | int | Y | 地区ID |
| modelId | int | N | 车型ID |
| sgId | int | N | 车系ID |
| mfId | int | N | 厂商id |
[BR]返回结果:
{
"models": [
{
"dealers": [
{
"address": "广州市白云区机场路888号广物汽贸(别克销售中心)",
"areaName": "白云区",
"dealerId": 15269,
"dealerPrice": 26.99,
"discount": 0,
"discountPrice": 26.99,
"giftPackage":"",
"giftPackage2": {
"giftPackage": "",
"giftPrice": "",
"otherGift": ""
},
"totalPrice":"12.33",
"is400": 1,
"is4S": 1,
"latitude": "23.192980475373542",
"longitude": "113.26646061581265",
"modelType": "接受预定",
"name": "广东物资君豪别克",
"namelistRange": 0,
"newsId": 6577743,
"phone": "400-860-0462",
"price": 26.99
}.....
],
"discount": 0,
"discountPrice": 26.99,
"giftPackage":"",
"giftPackage2": {
"giftPackage": "",
"giftPrice": "",
"otherGift": ""
},
"modelId": 34369,
"modelType": "接受预定",
"name": "昂科威 2015款 28T 四驱精英型 ",
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1410/31/c10/40404789_40404789_1414750174280.jpg",
"price": 26.99,
"totalPrice":"12.99"
}
],
"pageCount": 2723,
"pageNo": 1,
"pageSize": 1,
"total": 2723
}
2.6 车型库-根据车型id查询车型详细
PS:(接口数据中添加了minPrice数据)
原mrobot请求url:http://mrobot.pcauto.com.cn/buy/price/modelMessage/29179?areaId=1
现应用接口:
http://price.pcauto.com.cn//interface/iphone/atom/price/model_overview.jsp?mid=29179 http://price.pcauto.com.cn/interface/iphone/get_lower_modelPrice.jsp?mid=29179&rid=1
mrobot请求url:http:/mrobot.pcauto.com.cn/buy/price/modelMessage/32059
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| modelId|int | Y | 车型id | |
| areaId|int | Y | 地区ID |
[BR]返回结果: {
"bbsId": "17448", "brand": "宝马", "brandId": "20", "gfPrice": "87.7万", "kind": "中大型SUV", "manufacturer": "宝马(进口)", "minPrice": "76.7", "modelName": "宝马X5 2014款 xDrive30d", "price": "87.7", "productYear": "2014-02", "serialGorup": "宝马X5", "serialGorupId": 169, "serialGroup": "宝马X5", "serialId": "169", "shortName": "xDrive30d", "state": "在售", "total": "492", "url": " http://img.pconline.com.cn/images/upload/upc/tx/auto5/1403/25/c5/32437200_1395720746762_80x60.jpg", "url_120x90": " http://img.pconline.com.cn/images/upload/upc/tx/auto5/1403/25/c5/32437200_1395720746762_120x90.jpg", "url_400x300": " http://img.pconline.com.cn/images/upload/upc/tx/auto5/1403/25/c5/32437200_1395720746762_400x300.jpg"
} ==================================================性能优化=====================================================
3.1 车系参配
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/s/auto/buy/v1.2/serialDetail.xsp?serialId=4313&subscributedIds=30499,36337
现应用接口:
http://dev3.pcauto.com.cn:8001/interface/iphone/atom/price/model_list_by_sg_json.jsp?serialGroupId=4313 车系概览页车型列表接口 http://dev3.pcauto.com.cn:8001/interface/iphone/atom/price/model_overview.jsp?mid=30499 车型概览接口 http://dev3.pcauto.com.cn:8001/interface/iphone/atom/price/model_params.jsp?mid=30499 车型参数接口 http://dev3.pcauto.com.cn:8001/dealer/interface/order/order_info.jsp?m=getMCountBySG&sgId=4313 订单数
原接口:
http://price.pcauto.com.cn/interface/iphone/model_list_v3.jsp?serialId=4313
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| serialId | String | Y | 车系ID |
| subscributedIds | String | N | 已订阅的车型id |
| pageNo | String | N | 请求分页 |
| pageSize | String | N | 请求分页大小,当不传参数pageNo时,pageSize默认为所有车型总数 |
返回结果:
{
total: 17, //车型总数
pageCount: 6, //参配总页数,pageCount=ceil(total/pageSize)
pageNo: 1, //第几页
pageSize: 3, //每页大小
"detailArray": [
{
"detail": [
{
"groupDetail": [
"全国4S店",
"2368笔"
],
"groupName": "询价订单"
},
{
"groupDetail": [
"前制动器类型",
"通风盘式",
"后制动器类型",
"通风盘式",
"驻车制动类型",
"电子驻车",
"前轮胎规格",
"245/45 R18 ",
"后轮胎规格",
"245/45 R18 ",
"备胎规格",
"非全尺寸"
],
"groupName": "车轮制动"
}...
}
],
"groupNameArray": [
"询价订单",
"价格",
"基本参数",
"车身",
"发动机",
"电动机",
.....
]
}
3.2 车型对比
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/s/auto/buy/v1.2/detailCompare.xsp?modelIds=34224,30502,30501,30500,30499&subscributedIds=30503,30499,30500
现应用接口:
http://dev3.pcauto.com.cn:8001/interface/iphone/atom/price/model_overview.jsp?mid=30499 车型概览接口 http://dev3.pcauto.com.cn:8001/interface/iphone/atom/price/model_params.jsp?mid=30499 车型参数接口 http://dev3.pcauto.com.cn:8001/dealer/interface/order/order_info.jsp?m=getMCountBySG&sgId=4313 订单数
原接口:
http://price.pcauto.com.cn/interface/iphone/model_detail.jsp?mid=34224
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| modelIds | String | Y | 车型ID |
| subscributedIds | String | N | 已订阅的车型id |
返回结果:
{
detailArray: [
{
detail: [
{
groupDetail: [
"全国4S店",
"3473笔"
],
groupName: "询价订单"
},
......
isSubscributed: false,
metaUrl: "http://price.pcauto.com.cn/interface/iphone/model_detail.jsp?mid=30503",
modelId: "30503",
modelName: "奥迪A6L 2014款 30 FSI 舒适型 ",
shortName: "30 FSI 舒适型"
},
......
}
]
3.3 车型综述
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/s/auto/buy/v1.2/model.xsp?modelId=3462&v=1.1.0&areaId=2&isCompared=0&isSubscribed=0
现应用接口:
http://price.pcauto.com.cn/interface/iphone/atom/price/model_overview.jsp?mid=34626 车型基本信息 http://price.pcauto.com.cn/interface/iphone/atom/price/model_params.jsp?mid=34626 参数信息 http://price.pcauto.com.cn/interface/iphone/atom/price/model_calculator_basic_json.jsp?mIds=34626 基础数据如排量等 http://price.pcauto.com.cn/interface/iphone/dealer_page_list_json.jsp?modelId="+modelId+"&rId="+areaId+"&pageNo=1&pageSize=1000 经销商信息 http://price.pcauto.com.cn/interface/iphone/atom/dealer/model_local_min_price.jsp?mid=" + modelId + "&rid=" + areaId 车型本地最低价 http://mall.pcauto.com.cn/autoMall/interface/auto_mall_gct_list_by_sg_json.jsp?regionId=1&serialId=4313车系下是否有团购信息
[BR]原mrobot接口:http://mrobot.pcauto.com.cn/buy/price/model/34626?pageSize=20&pageNo=1;
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| areaId | int | N | 地区ID |
| modelId | int | N | 车型ID |
| v | string | N | 版本号 |
| isCompared | int | N | 是否已比较 |
| isSubscribed | int | N | 是否已订阅 |
3.4 车系综述
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/s/auto/buy/v1.2/serial.xsp?v=1.1.0&areaId=3&isSubscribed=0&serialId=4313&modelIds=
现应用接口:
http://price.pcauto.com.cn/interface/iphone/atom/price/serial_group_basic_json.jsp?serialGroupId=4313 //车系概述基本数据 http://price.pcauto.com.cn/interface/iphone/atom/price/model_list_by_sg_json.jsp?serialGroupId=4313 //车系概述最低价接口 http://price.pcauto.com.cn/interface/iphone/serial_group_compete.jsp?serialGroupId=4313&size=3 //车系对比 http://mall.pcauto.com.cn/autoMall/interface/auto_mall_gct_list_by_sg_json.jsp?regionId=3&serialId=4313 //判断是否有团购 http://price.pcauto.com.cn/interface/iphone/atom/dealer/model_list_news_price_json.jsp?serialGroupId4313&rId=3 //车系概述列表接口 http://price.pcauto.com.cn/interface/iphone/get_lower_modelPrice.jsp?rid=3&sid=4313) //获取本地最低价 http://price.pcauto.com.cn/interface/cms/region_400_json.jsp?rid=3) //获取400电话
[BR]原mrobot接口:http://mrobot.pcauto.com.cn/buy/price/serial/4313?v=1.1.0&areaId=3&isSubscribed=0&modelIds=;
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:60
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| areaId | int | Y | 地区ID |
| serialId | int | Y | 车系id |
| isSubscribed | int | N | 是否订阅 |
| modelId | int | N | 车型ID |
页面内数据说明:在返回的页面里添加了注释数据/*@_HTML_META_START_(数据部分)_HTML_META_END_@*/ 数据内容为:
{
"kind": "中型车",
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1408/11/c1/37285606_37285606_1407725980801_400x300.jpg",
"priceRange": "27.28~57.81万",
"cars": [{
"title": " 1.8T 涡轮增压 160马力",
"data": [{
"id": "33318",
"title": "2015款 1.8 30TFSI 手动舒适型",
"price": "27.28",
"config": "6挡手动 前置前驱 ",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1409/17/c6/38686815_38686815_1410941571968_120x90.jpg",
"minPrice": "23.77",
"paiLiang": "1.8",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 7.13,
"loan": 170000,
"monthPay": 0.52,
"firstPayTotal": 9.87,
"loantotal": 28.7,
"total": 26.87
}
},
{
"id": "33320",
"title": "2015款 1.8 30TFSI 自动舒适型",
"price": "29.1",
"config": "CVT无级变速(模拟8挡) 前置前驱 ",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1407/03/c3/35925221_35925221_1404357427634_120x90.jpg",
"minPrice": "25.6",
"paiLiang": "1.8",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 7.68,
"loan": 180000,
"monthPay": 0.55,
"firstPayTotal": 10.9,
"loantotal": 30.84,
"total": 28.9
}
}]
},
{
"title": " 2.0T 涡轮增压 179马力",
"data": [{
"id": "33313",
"title": "2015款 2.0 35TFSI 自动标准型",
"price": "31.28",
"config": "CVT无级变速(模拟8挡) 前置前驱 ",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1210/01/c0/14229062_14229062_1349107127921_120x90.jpg",
"minPrice": "27.84",
"paiLiang": "2.0",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 8.35,
"loan": 190000,
"monthPay": 0.58,
"firstPayTotal": 12.4,
"loantotal": 33.44,
"total": 31.4
}
},
{
"id": "33314",
"title": "2015款 2.0 35TFSI 自动舒适型",
"price": "33.29",
"config": "CVT无级变速(模拟8挡) 前置前驱 ",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1408/11/c1/37285606_37285606_1407725980801_120x90.jpg",
"minPrice": "29.13",
"paiLiang": "2.0",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 8.74,
"loan": 200000,
"monthPay": 0.62,
"firstPayTotal": 12.83,
"loantotal": 34.98,
"total": 32.83
}
},
{
"id": "33315",
"title": "2015款 2.0 35TFSI 自动技术型",
"price": "37.28",
"config": "CVT无级变速(模拟8挡) 前置前驱 ",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1408/11/c6/37300232_37300232_1407743541947_120x90.jpg",
"minPrice": "33.17",
"paiLiang": "2.0",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 9.95,
"loan": 230000,
"monthPay": 0.71,
"firstPayTotal": 14.36,
"loantotal": 39.83,
"total": 37.36
}
},
{
"id": "33316",
"title": "2015款 2.0 35TFSI 自动豪华型",
"price": "40.2",
"config": "CVT无级变速(模拟8挡) 前置前驱 ",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1210/01/c0/14229062_14229062_1349107127921_120x90.jpg",
"minPrice": "35.78",
"paiLiang": "2.0",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 10.73,
"loan": 250000,
"monthPay": 0.77,
"firstPayTotal": 15.26,
"loantotal": 42.95,
"total": 40.26
}
}]
},
{
"title": " 2.0T 涡轮增压 224马力",
"data": [{
"id": "33319",
"title": "2015款 2.0 45TFSI quattro个性运动版",
"price": "35.3",
"config": "7挡双离合 前置四驱 托森式差速",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1410/22/c6/39977239_39977239_1413950602832_120x90.jpg",
"minPrice": "31.42",
"paiLiang": "2.0",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 9.43,
"loan": 220000,
"monthPay": 0.68,
"firstPayTotal": 13.41,
"loantotal": 37.77,
"total": 35.41
}
},
{
"id": "33317",
"title": "2015款 2.0 45 TFSI quattro运动型",
"price": "47.36",
"config": "7挡双离合 前置四驱 托森式差速",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1210/01/c0/14229062_14229062_1349107127921_120x90.jpg",
"minPrice": "41.68",
"paiLiang": "2.0",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 12.5,
"loan": 290000,
"monthPay": 0.89,
"firstPayTotal": 17.82,
"loantotal": 49.94,
"total": 46.82
}
}]
},
{
"title": " 3.0L 机械增压 272马力",
"data": [{
"id": "33321",
"title": "2015款 3.0 50TFSI quattro旗舰型",
"price": "57.81",
"config": "7挡双离合 前置四驱 托森式差速",
"state": "在售",
"status": "在售",
"isNews": "0",
"rjBzzw": 5,
"introduce": 0,
"photo": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1210/01/c0/14229062_14229062_1349107127921_120x90.jpg",
"minPrice": "7.0",
"paiLiang": "",
"jqx": 950,
"glassPercent": 0.0019,
"compared": "",
"result": {
"shoufu": 2.1,
"loan": 50000,
"monthPay": 0.15,
"firstPayTotal": 3.2,
"loantotal": 8.73,
"total": 8.2
}
}]
}]
}
4.1 我的-消息推送定制
说明:
使用post方式请求
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/x/wxzs.pcauto.com.cn/interface/app/do_autobuyApp.jsp
后端url: http://wxzs.pcauto.com.cn/interface/app/do_autobuyApp.jsp
参数描述:
@param callback 回调函数名,可选
@param m 调用的方法,必填,m的取值,{m= triggerSync},参数说明如下:
@param dId 设备ID,必填
@param push 开关值,必填 0:不推送, 1:推送
@param type 功能类型,必填,取值:1:推送总开关. 2:夜间推送开关. 3:团购推送开关. 4:优惠推送开关.
返回结果:
{"msg":"同步成功.","result":true}
4.2 我的-车库数据启动同步接口
说明: 使用post方式请求 mrobot请求url:http://mrobot.pcauto.com.cn/xsp/x/wxzs.pcauto.com.cn/interface/app/do_autobuyApp.jsp 后端url: http://wxzs.pcauto.com.cn/interface/app/do_autobuyApp.jsp 参数描述: @param callback 回调函数名,可选 @param m 调用的方法,必填,m=launchSync : 启动购车APP时同步: @param dId 设备ID,必填 @param app app名称,必填 @param mIds 车型收藏ids 英文","号相隔 , 必填.若无收藏可不传此参数.(DB会跟mIds的值完全同步) @param sgIds 车系收藏ids 英文","号相隔 , 必填.若无收藏可不传此参数.(DB会跟sgIds的值完全同步) @param token app标识,选填 @param rId 用户所在城市id,选填 @param rName 用户所在城市名称,选填 @param pushSwitch 推送总开关,选填 0:不推送, 1:推送 @param nightPushSwitch 夜间推送开关,选填 0:不推送, 1:推送 @param groupbuySwitch 团购推送开关,选填 0:不推送, 1:推送 @param discountSwitch 优惠推送开关,选填 0:不推送, 1:推送
4.3 根据车系/车型获取行情接口
说明:返回数据的车系优惠行情"sgNews"的数据成员里新增modelId,以用于优惠行情详情页里全款购车价格的计算。
请求方式:get方式请求
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/x/price.pcauto.com.cn/dealer/interface/app/model_news4fav_json.jsp
后端url:
http://price.pcauto.com.cn/dealer/interface/app/model_news4fav_json.jsp
请求参数:
areaId 地区id
sgIds 车系id串,逗号分隔多个
modelIds 车型id串,逗号分隔多个
date 日期,格式:yyyy-MM-dd
callback js回调函数名称
返回值:
{
"sgNews":[
{
"modelId": "36342",
"newsCreateTime": "2015-03-02 10:44:51.0",
"newsUrl": "http://m.pcauto.com.cn/auto/market/15075-7492822.html",
"newsId": "7492822",
"newsName": "奥迪Q5钜惠7.2万 0利息并送4次保养",
"deadline": "2015-03-31 23:59:59.0",
"sgId": "4457"
}
……
],
"modelNews":[
{
"newsCreateTime":"2014-08-18 09:04:19.0",
"newsUrl":"http://m.pcauto.com.cn/auto/market/30830-5319592.html",
"newsId":"5319592",
"newsName":"朗逸最高优惠0.5万 现车充足",
"modelId":"3225"
}
……
]
}
4.4 团购投诉接口信息
说明:
使用post方式请求
mrobot请求url:http://mrobot.pcauto.com.cn/xsp/x/price.pcauto.com.cn/dealer/interface/tuangou/tuangou_report.jsp?&req_enc=utf-8&resp_enc=utf-8
后端url:
http://price.pcauto.com.cn/dealer/interface/tuangou/tuangou_report.jsp
参数:
name:投诉人姓名
phone:投诉人电话
content:投诉内容
_charset:字符编码(取值utf-8)
callback:回调函数名称(可以不传,按具体情况使用)
返回值:
不传callback参数
成功返回:{"status":"success"}
失败返回:{"status":"error"}
传callback参数
成功返回:callback_name({"status":"success"})
失败返回:callback_name({"status":"error"})
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)