Changes between Version 68 and Version 69 of buygo_jiekou


Ignore:
Timestamp:
09/22/2013 03:03:25 PM (13 years ago)
Author:
lijunrong
Comment:

修改登录接口,以及增加获取用户信息接口

Legend:

Unmodified
Added
Removed
Modified
  • buygo_jiekou

    v68 v69  
    338338 
    339339 
    340 * '''用户登录接口:/login''' 
     340* '''用户登录接口:http://passport2.pconline.com.cn/passport2/rest/login.jsp''' [[BR]] 
    341341  接口类型:数据接口 [[BR]] 
    342342  数据格式:JSON [[BR]] 
     
    346346 
    347347{{{ 
    348 {      "username":"用户名", 
    349        "uid":用户id, 
    350        "accountId":accountId, 
    351        "common_session_id":"common_session_id", 
    352        "image":"logo的url" 
    353 }(登陆失败返回空串) [[BR]] 
     348{   status : 处理状态(0 为成功,其他为失败) 
     349   message : 相关状态信息 
     350   登录成功时还会返回 
     351   session : common_session_id值 
     352   common_session_id : common_session_id值 
     353   userId: 当前登录用户id 
     354} [[BR]] 
     355}}} 
     356  
     357 
     358 
     359 
     360[[br]][[br]] 
     361* '''获取用户信息接口:/buygo/login.jsp''' 
     362  接口类型:数据接口 [[BR]] 
     363  数据格式:JSON [[BR]] 
     364  请求方式:GET [[BR]] 
     365  请求参数:uid(用户Id) [[BR]] 
     366  返回数据: 
     367 
     368{{{ 
     369{   code: 请求状态(1 为成功,0为失败) 
     370   请求成功时还会返回 
     371   "uid": uid(用户Id) 
     372   "image": "用户logo图url" 
     373} [[BR]] 
    354374}}} 
    355375