http://gw.api.taobao.com/router/rest
app_key=test
fields=nick,sex,buyer_credit,seller_credit,location.city,location.state,location.country,created,last_visit
format=xml
method=taobao.user.get
nick=夢蝶舞風
sign_method=md5
timestamp=2012-02-18 09:52:23
v=2.0
sign=287EBEBFD428885695408E00BD436C89
我想问下,如果是中文的nick的话,要怎么组合验证呢,如果是英文的话,我组成的是,
app_keytestfieldsnick,sex,buyer_credit,seller_credit,location.city,location.state,location.country,created,last_visitformatxmlmethodtaobao.user.getnick夢蝶舞風sign_methodmd5timestamp2012-02-18 09:52:23v2.0
这串进去加密,算出来的sign是和淘宝测试工具的是一样的,但是如果是中文名的话,就不一样,但是比如我把“夢蝶舞風”用AnsiToUtf8转换后再传进去加密,算出来的也不一样,能否请哪位大大指教下

解决方案 »

  1.   

    testapp_keytestfieldsnick,sex,buyer_credit,seller_credit,location.city,location.state,location.country,created,last_visitformatxmlmethodtaobao.user.getnick夢蝶舞風sign_methodmd5timestamp2012-02-18 09:52:23v2.0test
    写的时候,忘记加上appSecret
      

  2.   

    淘宝的协议定的不怎么样啊
    起码应该:app_key=test;fields=nick,sex,buyer_credit,seller_credit,location.city,location.state,location.country,created,last_visit;format=xml;method=....;
    这样的,才好看一点嘛。虽然不用人看,但是分隔清楚好多了