Changes between Version 35 and Version 36 of pcauto_4.3.0/interface
- Timestamp:
- 04/21/2014 04:36:03 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pcauto_4.3.0/interface
v35 v36 513 513 {{{ 514 514 备注:增加订阅,说明:支持批量添加。由于4.3添加了车系收藏功能,收藏功能和订阅功能是两个不同的模块;而原有的订阅功能就是收藏。为了将两者区分开来,需要另外新建订阅管理后台和相关接口。详细查阅原型:http://rdtrac.pc.com.cn/mobile/pototype/khd/v4.3.0/v3/ 515 请求URL: 515 516 请求URL:http://127.0.0.1:8081/mrobot-data/pcauto/user/modifySubscribeRecord.jsp 516 517 HTTP请求方式:post 517 518 是否需要登录:是 … … 520 521 缓存时间:无 521 522 请求参数: 522 common_session_id:用户登陆后获得的认证id 523 serials:车系id数组 524 返回参数: 525 { 526 "serials":[ 527 { 528 "carId":518669, 529 "carPic":"http://img.pconline.com.cn/images/upload/upc/tx/auto5/1207/16/c4/12351711_12351711_1342426522843_270x202.jpg" 523 common_session_id:用户登陆后获得的认证id,请求接口时放cookie中或作为url参数 524 act: 添加订阅请用add,删除订阅请用delete 525 param:收藏的车系数据,格式如下所示: 526 { 527 "serialList": [ 528 { 529 "serialId": 269811, 530 "serialName": "马自达3", 531 "price": "14.98-18.38万", 532 "image": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1311/18/c4/28751120_1384764398437_270x202.jpg" 533 }, 534 { 535 "serialId": 424, 536 "serialName": "宝马3系", 537 "price": "28.3-66.2万", 538 "image": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1311/05/c0/28324073_1383616337906_270x202.jpg" 539 }, 540 { 541 "serialId": 142, 542 "serialName": "奔驰A级", 543 "price": "25.2-35.8万", 544 "image": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1304/28/c5/20336832_1367115633609_270x202.jpg" 545 }, 546 { 547 "serialId": 291740, 548 "serialName": "蒙迪欧", 549 "price": "17.98-26.58万", 550 "image": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1310/17/c19/27624664_1382004008375_270x202.jpg" 551 }, 552 { 553 "serialId": 269811, 554 "serialName": "马自达3", 555 "price": "14.98-18.38万", 556 "image": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1311/18/c4/28751120_1384764398437_270x202.jpg" 530 557 } 531 ...532 558 ] 533 559 } 534 560 561 返回参数: 562 1.未登录: 563 { 564 "code": -1, 565 "message": "用户未登陆" 566 } 567 568 2.请求参数错误: 569 { 570 "code": -2, 571 "message": "请求参数错误" 572 } 573 574 3.程序出错: 575 { 576 "code": -3, 577 "message": "程序异常" 578 } 579 580 4.正常返回: 581 { 582 "code": 0, 583 "userId": 24286812, 584 "ids": [ 585 1, 586 2, 587 3, 588 4, 589 5, 590 6, 591 7 592 ] 593 } 535 594 }}} 536 595 … … 538 597 {{{ 539 598 备注:删除订阅,说明:不支持批量删除。由于4.3添加了车系收藏功能,收藏功能和订阅功能是两个不同的模块;而原有的订阅功能就是收藏。为了将两者区分开来,需要另外新建订阅管理后台和相关接口。详细查阅原型:http://rdtrac.pc.com.cn/mobile/pototype/khd/v4.3.0/v3/ 540 请求URL: 599 600 请求URL:http://127.0.0.1:8081/mrobot-data/pcauto/user/modifySubscribeRecord.jsp 541 601 HTTP请求方式:post 542 602 是否需要登录:是 … … 545 605 缓存时间:无 546 606 请求参数: 547 common_session_id:用户登陆后获得的认证id 548 carId:爱车id 549 返回参数: 550 { 551 code: 1, 552 message: "删除数据成功" 553 } 607 common_session_id:用户登陆后获得的认证id,请求接口时放cookie中或作为url参数 608 act: 添加订阅请用add,删除订阅请用delete 609 ids:支持批量删除,如ids=1,2,3,4,5,此id为接口2.16或2.17中返回的id 610 611 返回参数: 612 1.未登录: 613 { 614 "code": -1, 615 "message": "用户未登陆" 616 } 617 618 2.请求参数错误: 619 { 620 "code": -2, 621 "message": "请求参数错误" 622 } 623 624 3.程序出错: 625 { 626 "code": -3, 627 "message": "程序异常" 628 } 629 630 4.正常返回: 631 { 632 "code": 0, 633 "userId": 24286812, 634 "ids": [ 635 1, 636 2, 637 3, 638 4, 639 5, 640 6, 641 7 642 ] 643 } 554 644 }}} 555 645
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)