Changes between Version 5 and Version 6 of pconline_4.5.0/interface


Ignore:
Timestamp:
02/26/2016 02:31:00 PM (10 years ago)
Author:
luzhentao
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pconline_4.5.0/interface

    v5 v6  
    177177 
    178178 
    179 === 1.6 手机注册=== 
    180  
    181 接口:[[BR]] 
    182  
    183 **说明** 
    184  
    185 > [[BR]] 
    186  
    187 **缓存时间** 
    188  
    189 >无 
    190  
    191 **提交方式** 
    192  
    193 > 
    194  
    195 **是否登录** 
    196  
    197 >  
     179=== 1.6 手机注册=== 
     180 
     181接口:http://passport3.pconline.com.cn/passport3/api/registerForMobile.jsp [[BR]] 
     182 
     183**说明** 
     184 
     185> 手机注册接口 [[BR]] 
     186 
     187**缓存时间** 
     188 
     189>无 
     190 
     191**提交方式** 
     192 
     193>HTTPS POST 
     194 
     195**是否登录** 
     196 
     197>  
    198198 
    199199**参数** 
    200 ||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必需 =||=说明=|| 
    201  
    202  
    203 **返回** 
     200||= 参数名 =||= 是否必需 =||= 默认值 =||=说明=|| 
     201|| mobile || 是 || ||手机号码|| 
     202|| mobileVCode || 是 || ||手机验证码|| 
     203|| username || 是 || ||用户名|| 
     204|| password || 是 || ||登录密码|| 
     205|| passwordConfirm || 是 || ||确认密码|| 
     206|| req_enc || 否 ||utf-8 ||提交编码|| 
     207|| resp_enc || 否 ||utf-8 ||返回编码|| 
     208 
     209**返回** 
     210{{{#!java 
     211 {"status":0,"desc":"OK","accountId":" + accountId + "} 
     212 {"status":1,"desc":"用户名是必填项","field":"username"} 
     213 {"status":2,"desc":"用户名不允许包含空白字符","field":"username"} 
     214 {"status":3,"desc":"用户名不允许为纯数字","field":"username"} 
     215 {"status":4,"desc":"该用户名前缀不能使用","field":"username"} 
     216 {"status":5,"desc":"该用户名涉及关键字不能使用","field":"username"} 
     217 {"status":6,"desc":"用户名过长,请输入8个汉字或16个字符(数字,字母,减号,下划线,点号,中文,日文平假名/片假名)","field":"username"} 
     218 {"status":7,"desc":"用户名含有非法字符,用户名只支持数字、字母、减号、下划线、点号、中文、日文平假名/片假名","field":"username"} 
     219 {"status":8,"desc":"该用户名已经注册使用","field":"username"} 
     220 {"status":21,"desc":"密码是必填项","field":"password"} 
     221 {"status":22,"desc":"密码过短,密码为6-16个字母、数字、符号的组合","field":"password"} 
     222 {"status":23,"desc":"密码过长,不超过16个字符","field":"password"} 
     223 {"status":24,"desc":"密码只能是字母、数字、英文符号的组合","field":"password"} 
     224 {"status":25,"desc":"确认密码密码是必填项","field":"password"} 
     225 {"status":26,"desc":"两次输入的密码不一致,请确认","field":"password"} 
     226 {"status":41,"desc":"手机号必须输入","field":"mobile"} 
     227 {"status":42,"desc":"请输入正确的手机号码","field":"mobile"} 
     228 {"status":43,"desc":"请输入验证码","field":"mobileVCode"} 
     229 {"status":44,"desc":"请输入正确验证码","field":"mobileVCode"} 
     230 {"status":45,"desc":"验证码错误或失效","field":"mobileVCode"} 
     231 {"status":46,"desc":"该手机号码已经注册","field":"mobile"} 
     232 {"status":-1,"desc":"非法请求"} 
     233 {"status":-3,"desc":"注册失败,请稍候再试!"} 
     234 {"status":-4,"desc":"其他错误:"......"}  
     235}}} 
    204236 
    205237**返回参数说明** 
    206238||= 参数名 =||= 参数含义 =|| 
    207  
    208  
    209  
    210  
    211 === 1.7 意见反馈增加上传图片=== 
    212 接口: [[BR]] 
    213  
    214 **说明** 
    215  
    216 > [[BR]] 
    217  
    218 **缓存时间** 
    219  
    220 > 
    221  
    222 **提交方式** 
    223  
    224 > 
    225  
    226 **是否登录** 
    227  
    228 >  
     239|| status ||处理状态(0 为成功,其他为失败)|| 
     240|| desc ||处理状态描述|| 
     241|| accountId ||用户ID|| 
     242|| field ||定位到表单输入框(状态为失败时才出现)|| 
     243 
     244 
     245=== 1.7 注册时发送手机验证码=== 
     246 
     247接口:http://passport3.pconline.com.cn/passport3/api/sendVerificationCode.jsp [[BR]] 
     248 
     249**说明** 
     250 
     251> 用于注册新账号时发送手机验证码,同一个手机号码一天之内只能发5次(目前的设定) [[BR]] 
     252 
     253**缓存时间** 
     254 
     255>无 
     256 
     257**提交方式** 
     258 
     259>POST 
     260 
     261**是否登录** 
     262 
     263> 否 
    229264 
    230265**参数** 
    231  
    232  
    233 **返回** 
     266||= 参数名 =||= 是否必需 =||= 默认值 =||=说明=|| 
     267|| act || 是 || ||act = getPassword 不检查手机号码是否已经注册 || 
     268|| act || 是 || ||act = check: 必须传 verificationCode = (验证码),检查验证码是否正确 || 
     269|| act || 是 || ||act = 不传 不传act参数,将会默认检查手机是否注册,已注册手机不发验证码 || 
     270|| mobile || 是 || ||手机号|| 
     271|| vCodeKey || 是 || ||sendVerificationCode.jsp+当前系统毫秒数  进行md5加密|| 
     272|| VCodeTime || 是 || ||为系统当前时间毫秒数|| 
     273|| req_enc || 否 ||utf-8 ||提交编码|| 
     274|| resp_enc || 否 ||utf-8 ||返回编码|| 
     275 
     276**返回** 
     277{{{#!java 
     278 {"code":0, "message":"发送验证码成功,手机号:1111111"} 
     279 {"code":-1, "message":"...各种情况.."} 
     280}}} 
    234281 
    235282**返回参数说明** 
    236283||= 参数名 =||= 参数含义 =|| 
     284|| status ||处理状态(0 为成功,其他为失败)|| 
     285|| desc ||处理状态描述|| 
     286 
     287 
     288=== 1.8 意见反馈增加上传图片=== 
     289接口: [[BR]] 
     290 
     291**说明** 
     292 
     293> [[BR]] 
     294 
     295**缓存时间** 
     296 
     297> 
     298 
     299**提交方式** 
     300 
     301> 
     302 
     303**是否登录** 
     304 
     305>  
     306 
     307**参数** 
     308 
     309 
     310**返回** 
     311 
     312**返回参数说明** 
     313||= 参数名 =||= 参数含义 =||