Changes between Version 1 and Version 2 of baby2.2_developers/interface
- Timestamp:
- 03/03/2015 04:08:37 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
baby2.2_developers/interface
v1 v2 14 14 } 15 15 16 4.接口默认的字符编码是UTF-8,接口需要实现对req-enc和resp-enc参数的支持。在JSP的最顶部,实现类似下面的代码: 17 18 String queryString = request.getQueryString(); 19 String requestEncoding = getParam(queryString,"req_enc"); 20 String responseEncoding = getParam(queryString,"resp_enc"); 21 if(isNotBlank(requestEncoding)){ 22 request.setCharacterEncoding(requestEncoding); 23 } 24 if(isNotBlank(responseEncoding)){ 25 response.setCharacterEncoding(responseEncoding); 26 } 16 4.接口默认的字符编码是UTF-8,接口需要实现对req-enc和resp-enc参数的支持。 27 17 28 18 5.所有有写操作的数据接口,必须用POST方式提交,在接口里需要判断提交方式,拒绝GET的调用请求。 … … 34 24 35 25 == 二.接口列表 == 26 === 1.0 个人中心 === 27 ==== 1.1 问答回复数 ==== 28 {{{ 29 备注:获取问答回复数 30 接口开发: 31 mrobot接口url: 32 后端url: 33 34 HTTP请求方式:get 35 是否需要登录:否 36 返回格式:JSON 37 是否有缓存:有 38 缓存时间: 39 请求参数: 40 common_session_id:登录用户id 41 返回参数 42 { 43 "ret": 1, //返回状态,1=成功,-1=失败 44 "questionsCount": 10, //问答回复数 45 "error-desc": "提示信息" //错误提示信息 46 } 47 48 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)