Changes between Version 1 and Version 2 of shangpinbaike


Ignore:
Timestamp:
04/13/2016 01:50:51 PM (10 years ago)
Author:
wuyuanbo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • shangpinbaike

    v1 v2  
    6868 
    6969---- 
     70== 加金币加积分接口 == 
     71 
     72> 线上:http://best.pconline.com.cn/intf/shangpinbaike/addGoldAndScore.jsp 
     73**说明** 
     74 
     75> 提供加积分和金币接口 ,有ip限定,只提供给商品百科。 
     76 
     77**提交方式** 
     78 
     79> post 
     80 
     81**是否需要登录** 
     82 
     83> true 
     84 
     85**缓存方式** 
     86 
     87> 无 
     88 
     89**缓存时间** 
     90 
     91> 无 
     92 
     93**参数** 
     94 
     95||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     96||gold||金币||int||""||是|| 
     97||score||积分||int||""||是|| 
     98||experience||经验||int||""||是|| 
     99||userid||用户id||long||""||是|| 
     100 
     101 
     102**返回** 
     103{{{#!java 
     104result { 
     105    "status":1, 
     106    "msg":"添加成功" 
     107} 
     108}}} 
     109**返回状态** 
     110||= status =||= msg=||= 说明 =|| 
     111||1||添加成功||添加成功|| 
     112||0||未找到该用户:+userid ||未找到该用户|| 
     113||-1||你当前的ip:+ip地址+没有权限访问 ||非商品百科,没有权限访问|| 
     114||-2||请求方式错误 ||请求方式错误|| 
     115 
     116 
     117---- 
     118== 根据所属地域查询电商列表 == 
     119 
     120> 线上:http://best.pconline.com.cn/intf/mall/getMallByType.jsp 
     121 
     122**说明** 
     123 
     124> 根据所属地域查询电商列表,支持跨域 
     125 
     126**提交方式** 
     127 
     128> post 
     129 
     130**是否需要登录** 
     131 
     132> false 
     133 
     134**缓存方式** 
     135 
     136> ATS 
     137**缓存时间** 
     138 
     139> 10分钟 
     140 
     141**参数** 
     142 
     143||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     144||typeId||国内外电商  0国内电商 1国外电商 2跨境电商 3转运公司||int||""||是|| 
     145||callback||回调参数||string||""||否|| 
     146||pageNo||页数,默认为1||int||""||否|| 
     147||pageSize||每页数量,默认为10,最大为100||int||""||否|| 
     148 
     149 
     150**返回** 
     151{{{#!java 
     152result { 
     153   { 
     154    "data":[ 
     155        { 
     156            "Logo":"http://dev2.pconline.com.cn:9191/upcfiles/pc_best/1604/07/c0/114692_1460009584501.jpg", 
     157            "name":"测试电商1", 
     158            "seq":1, 
     159            "url":"http://best.pconline.com.cn/mall/网易考拉海购/youhui" 
     160        } 
     161    ], 
     162    "msg":"success", 
     163    "status":1 
     164} 
     165}}} 
     166**返回状态** 
     167||= status =||= msg =||= 说明 =|| 
     168||1||success||请求成功|| 
     169||0||null||结果为空|| 
     170||-1||parameter error||请求参数错误|| 
     171||-2||请求方式错误||请求方式错误||