Changes between Version 16 and Version 17 of baby2.3_developers/interface
- Timestamp:
- 05/26/2015 02:10:41 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
baby2.3_developers/interface
v16 v17 356 356 {{{ 357 357 备注:孕期体重记录 358 说明:根据返回参数的BMIType值选择对应的计算公式 ,参照附件《孕妇体重的算法(2)》 359 358 360 接口开发: 359 361 mrobot接口: … … 372 374 "result":1, //状态码,1=正常返回,0=返回错误 373 375 "msg":"数据错误" //提示信息 374 "BMI":20 //该用户的BMI值 376 "BMIType":4 //BMI指数类型(4孕前正常,5孕前偏瘦,6孕前偏重) 377 "preWeight"://孕前体重 375 378 "dataList": [ 376 379 { … … 390 393 {{{ 391 394 备注:记录体重身高 392 说明:初次使用,输入孕前体重与身高,app端计算BMI 值,并将BMI值post保存至服务器,之后操作无需再传BMI值395 说明:初次使用,输入孕前体重与身高,app端计算BMIType值,并将BMIType值、preWeight孕前体重,post保存至服务器,之后操作无需再传BMIType值、preWeight 393 396 394 397 接口开发: … … 404 407 v = 230 //版本号 405 408 设置header Cookie = "common_session_id=xxxx"; //登陆用户id 406 BMI:孕前BMI指数(只第一次操作时传参) 409 BMIType = 4 //BMI指数类型(4孕前正常,5孕前偏瘦,6孕前偏重) 410 //说明:第一次操作时,app通过计算孕前体重与身高得出BMI值,并得出BMIType指数类型(BMIType=4:偏轻BMI<18.5,BMIType=4:正常18.5≤BMI≤24.9,BMIType=4:偏重25≤BMI≤29.9) 411 preWeight:孕前体重 407 412 weight:当前体重 408 413 dateId:时间节点id(将所选时间转换为对应时间节点) … … 428 433 请求参数: 429 434 v = 230 //版本号 430 type = 1 // 体重类型(1正常,2偏瘦,3偏重)431 lemmaId //时间轴id,表示怀孕第几周第几天435 type = 1 //当前体重类型(1正常,2偏瘦,3偏重) 436 BMIType = 4 //孕前体重(4孕前正常,5孕前偏瘦,6孕前偏重) 432 437 433 438 返回参数:
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)