[关闭]
@apis1990 2016-08-24T03:47:21.000000Z 字数 3986 阅读 562

学员/教练档案

学员/教练档案


1.URL:/service/api/get_member_info.php

测试地址:http://36.33.24.119:8081/api/get_member_info.php

2.请求方式:POST

3.请求参数:

参数 类型 是否必须 描述
member_id int 教练/学员id
type int 1:教练 2:学员

表单数据:

  1. > 学员
  2. member_id = 1
  3. type = 2
  1. > 教练
  2. member_id = 26
  3. type = 1

4.接口返回结果

  1. > 学员端返回
  2. {
  3. "code": 200,
  4. "data": {
  5. "l_user_id": "1",
  6. "s_username": "chenxi",
  7. "s_password": "e10adc3949ba59abbe56e057f20f883e",
  8. "i_user_type": "0",
  9. "i_status": "0",
  10. "s_real_name": "恒心",
  11. "l_yw_incode": "1",
  12. "i_from": "1",
  13. "s_phone": "18656999023",
  14. "is_first": "1",
  15. "s_imgurl": "",
  16. "content": "",
  17. "coach_id": "0",
  18. "age": "24",
  19. "sex": "2",
  20. "identity_id": "342423199104106297",
  21. "address": "安徽省合肥市蜀山区",
  22. "user_photo": "",
  23. "license_num": "1", // 领证次数
  24. "photo_id": "1", // 默认头像ID
  25. "learncar_status": "科目二学习中", // 正在学车
  26. "all_learn_time": "34", // 学车时间
  27. "learn_car_time":"2", // 学车次数
  28. "total_price":"2000" // 学车总价格
  29. "photo_url": "1.png", // (需判断)如果user_photo为空 就用photo_url
  30. "learn_car_arr": [
  31. {
  32. "deal_type": "线下支付", //支付方式
  33. "lesson_name": "", //科目
  34. "lisence_name": "", // 牌照
  35. "school_name": "", // 学校名
  36. "coach_name": "", // 教练名
  37. "money": "150.00", // 费用
  38. "time_config": "10:00 -11:00", // 学车时间
  39. 'date_time':"2015-10-19 10:00-11:00", // 学车日期时间
  40. "star": "", // 星级
  41. "content": "" // 评价
  42. "address":"地址" // 地址
  43. },
  44. ...
  45. {
  46. "deal_type": "支付宝",
  47. "lesson_name": "",
  48. "lisence_name": "",
  49. "school_name": "",
  50. "coach_name": "",
  51. "money": "280.00",
  52. "time_config": "10:00 -11:00,9:00 -10:00,9:00 -10:00,4:00 -5:00,9:00 -10:00,8:00 -9:00,22:00 -23:00,16:00 -17:00,20:00 -21:00,22:00 -23:00,23:00 -24:00,18:00 -19:00,17:00 -18:00,18:00 -19:00,16:00 -17:00,11:00 -12:00,13:00 -14:00,15:00 -16:00,17:00 -18:00,13:00 -14:00,8:00 -9:00,9:00 -10:00,10:00 -11:00,8:00 -9:00,9:00 -10:00,23:00 -24:00,20:00 -21:00,21:00 -22:00",
  53. "star": "",
  54. "content": ""
  55. }
  56. ]
  57. }
  58. }
  1. > 教练端返回
  2. {
  3. "code": 200,
  4. "data": {
  5. "l_coach_id": "26",
  6. "s_coach_name": "戴驰",
  7. "s_teach_age": "6",
  8. "s_coach_sex": "1",
  9. "s_coach_imgurl": "http://localhost/sadmin/upload/coach/55e4fd1d1dc31.jpg",
  10. "s_coach_phone": "13003004023",
  11. "i_coach_group_id": "0",
  12. "s_school_name_id": "1",
  13. "s_coach_lesson_id": "2,3",
  14. "s_coach_lisence_id": "1",
  15. "s_coach_car_id": "16",
  16. "s_coach_car_no": "",
  17. "dc_coach_distance_x": "117.201725",
  18. "dc_coach_distance_y": "31.856782",
  19. "coach_student_distance": "0.0000",
  20. "i_coach_star": "5",
  21. "good_coach_star": "6",
  22. "i_service_count": "0",
  23. "i_success_count": "0",
  24. "s_coach_address": "安徽省合肥市蜀山区",
  25. "s_coach_place": "",
  26. "i_type": "1",
  27. "s_yh_name": "",
  28. "s_yh_zhanghao": "",
  29. "s_yh_huming": "",
  30. "order_receive_status": "1",
  31. "integrated_excellent": "24614",
  32. "province_id": "340000",
  33. "city_id": "340100",
  34. "area_id": "340104",
  35. "total_price": "130",
  36. "coach_star_count": "6",
  37. "addtime": "1441070365",
  38. "s_coach_content": "",
  39. "user_id": "0",
  40. "l_bx_kaifang": "0",
  41. "l_shehui_kaifang": "0",
  42. "l_notbx_kaifang": "0",
  43. "pass_count": "44", //所带学员数
  44. "rate": "69.8%", // 通过率
  45. "car_info": [
  46. {
  47. "id": "16",
  48. "name": "普桑",
  49. "car_no": "皖A4425学",
  50. "addtime": "1441069872",
  51. "imgurl": [
  52. "http://180.153.52.71:8001/service/sadmin/upload/car/1.jpg"
  53. ],
  54. "car_type": "1",
  55. "school_id": "1"
  56. }
  57. ],
  58. "learn_car_arr": [
  59. {
  60. "s_username": "将计就计",
  61. "s_phone": "15056032300",
  62. "user_photo": "", // 学员头像
  63. "coach_star": "5.0",
  64. "school_star": "5.0",
  65. "coach_content": "兔兔",
  66. "school_content": "哦哦哦图"
  67. },
  68. {
  69. "s_username": "测试",
  70. "s_phone": "12312312312222",
  71. "user_photo": "http://localhost/../upload/user/20151026/14458376644907.png",
  72. "coach_star": "5.0",
  73. "school_star": "5.0",
  74. "coach_content": "还不错了",
  75. "school_content": "还不错了"
  76. },
  77. {
  78. "s_username": "测试",
  79. "s_phone": "12312312312222",
  80. "user_photo": "http://localhost/../upload/user/20151026/14458376644907.png",
  81. "coach_star": "5.0",
  82. "school_star": "5.0",
  83. "coach_content": "来了",
  84. "school_content": "来了"
  85. },
  86. {
  87. "s_username": "测试",
  88. "s_phone": "12312312312222",
  89. "user_photo": "http://localhost/../upload/user/20151026/14458376644907.png",
  90. "coach_star": "5.0",
  91. "school_star": "5.0",
  92. "coach_content": "八一驾校就是别的驾校不能比的,服务周到。",
  93. "school_content": "八一驾校就是别的驾校不能比的,服务周到。"
  94. },
  95. {
  96. "s_username": "测试",
  97. "s_phone": "12312312312222",
  98. "user_photo": "http://localhost/../upload/user/20151026/14458376644907.png",
  99. "coach_star": "5.0",
  100. "school_star": "5.0",
  101. "coach_content": "很好",
  102. "school_content": "很好"
  103. },
  104. {
  105. "s_username": "chenx",
  106. "s_phone": "18656999023",
  107. "user_photo": "http://localhost/../upload/user/20151026/14458376644907.png",
  108. "coach_star": "3.0",
  109. "school_star": "4.0",
  110. "coach_content": "好 很好",
  111. "school_content": "好 很好啊!!!!"
  112. }
  113. ]
  114. }
  115. }
参数 类型 描述
code int 状态码:200 --- 成功 其它 --- 异常

需要字段:

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注