Changes between Version 4 and Version 5 of pcauto/choose


Ignore:
Timestamp:
07/26/2011 05:04:59 PM (15 years ago)
Author:
leijingtang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto/choose

    v4 v5  
    1 汽车网的使用的是快搜接口,所以需要遵循快搜的规则,不过前几个参数基本都是固定的 
    2 1.取所有搜索条件的接口: 
    3 http://ks.pcauto.com.cn/search.jsp?q=state:1&returnType=json&appName=auto_price&clustered=cluster_brand,cluster_price,cluster_displacement,cluster_gearbox,&perPage=0 
     1电脑网: 
     2http://mrobot.pconline.com.cn/v2/product/models/criterion/20937 
     3http://mrobot.pconline.com.cn/v2/product/models/search/20937?queryJson={"品牌":[24133,47071]} 
    44 
    5 2.选择完成后提交的地址接口: 
    6 http://ks.pcauto.com.cn/search.jsp?returnType=json&highlight=false&return=title,pic,url,price,kind_name,gearbox,displacement,cubage&appName=auto_price&q=state:1&perPage=5&clusterQuery%3D%28%28cluster_bland%3A10-15%E4%B8%87%2520OR%2520cluster_price%3A5-8%E4%B8%87%29%2520AND%2520cluster_price%3A%E6%9C%AC%E7%94%B0%29 
    7 clusterQuery参数说明:类似于如下格式, 
    8  
    9 如果是并条件,急用OR连接起来,与条件用AND,中间用空格隔开,两侧用括号包住 
    10 clusterQuery=((cluster_bland:10-15万 OR cluster_price:5-8万) AND cluster_price:本田) 
    11  
    12  
    13  
    14  
    15  
    16 电脑网的选机提交地址: 
    17 http://product.pconline.com.cn/productadvanceresult.jsp?type=3&queryStr=smallType%3A20937%20%u50CF%u7D20%3A%28%5B270%20TO%20369%5D%20OR%20%5B470%20TO%20799%5D%29%20%u7279%u8272%u529F%u80FD%3A%28WIFI%20OR%20%u88F8%u773C3D%29&pager.offset=0&sort= 
    18  
    19 电脑网的queryStr格式如下: 
    20 smallType:20937 品牌:(24133 OR 47071) 蓝牙:(支持) 主屏尺寸:([0.1 TO 2]) 
    21 都是类似于key:(value)的格式,只有smallType是除外的,因为它代表小类的id 
    22 雷敬棠(雷敬棠) 15:52:01 
    23 那多选的话应该就是这样   品牌:(24133 OR 47071)? 
    24  
    25 另外不同的kv对只是用空格间隔么? 
    26 夏稳(夏稳-分机897) 15:52:25 
    27 对的 
     5汽车网: 
     6http://mrobot.pcauto.com.cn/v2/price/models/criterion 
     7http://mrobot.pcauto.com.cn/v2/price/models/search?pageNo=1&queryJson={"cluster_brand":["宝马"]} 
    288 
    299 
     
    3515 
    3616 
    37  
    38