Changes between Version 7 and Version 8 of pcauto_4.4.0/interface
- Timestamp:
- 07/10/2014 04:24:39 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pcauto_4.4.0/interface
v7 v8 595 595 === 2.9 [=#point209 手机号注册]=== 596 596 {{{ 597 备注:判断车型是否已经收藏 598 请求URL: 597 备注:手机号注册 598 条件:(开发和测试环境都可以开通例外) 599 1.必须post提交; 600 601 请求URL:http://passport2.pconline.com.cn/passport2/api/registerForMobile.jsp 599 602 HTTP请求方式:post 600 603 是否需要登录:是 … … 603 606 缓存时间:无 604 607 请求参数: 605 1). code :手机短信验证码(系统发送的短信里包含的验证码) 606 2). password :密码 607 3). passwordConfirm :重输密码 608 4). mobile :手机号 608 req_enc 提交编码 609 resp_enc 返回编码 610 mobile 手机号码 611 captcha 手机验证码 612 username 用户名 613 password 密码 614 passwordConfirm 确认密码 609 615 返回参数: 610 status : 处理状态(0 为成功,其他为失败) 611 desc : 处理状态描述 612 accountId : 用户ID 616 {"status":2,"desc":"message","field":"mobile"} 617 status = 0 注册成功; 618 status = -2 注册时发生未预期错误,请与管理员联系! 619 其他 field:出错位置 desc:错误信息 613 620 }}} 614 621 … … 616 623 {{{ 617 624 备注:发送手机验证码 618 请求URL: 625 1.必须post提交; 626 2.指定页面提交方可调用接口(需要申请); 627 3.同一ip一分钟之内可以发一次; 628 4.同一ip一天之内只能发5次(目前的设定); 629 5.同一个手机号码一天之内只能发5次(目前的设定); 630 请求URL:http://passport2.pconline.com.cn/passport2/api/sendVerificationCode.jsp 619 631 HTTP请求方式:post 620 632 是否需要登录:是 … … 623 635 缓存时间:无 624 636 请求参数: 625 mobile :手机号 637 act = getPassword 不检查手机号码是否已经注册 638 act = check 必须传 verificationCode = (验证码),检查验证码是否正确。 639 不传act 参数,将会默认检查手机是否注册,已注册手机不发验证码。 640 mobile= 手机号 641 callback= 支持回调函数 642 643 (以下两个参数为必填,为了防刷而添加的,vCodeKey为通过特定的MD5加密,VCodeTime为系统当前时间) 644 vCodeKey = 在出调用该接口页面前的java代码中生成 645 VCodeTime = 为系统当前时间 646 //取系统当前时间再和指定key做md5加密 647 String Vkey = "sendVerificationCode.jsp"; 648 long VCodeTime =System.currentTimeMillis(); 649 String vCodeKey = T.md5(Vkey + VCodeTime); 650 request.setAttribute("VCodeTime", VCodeTime); 651 request.setAttribute("vCodeKey", vCodeKey); 652 //end匹配加密信息 626 653 返回参数: 627 654 {"code":-1, "message":"...各种情况.."} 655 {"code":0, "message":"发送验证码成功,手机号:1111111"} 628 656 }}} 629 657
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)