[关闭]
@apis1990 2016-08-24T03:53:52.000000Z 字数 2031 阅读 547

校长app


今日订单接口


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

测试地址:http://36.33.24.119:8081/api/v2/headmaster/get_present_order.php
测试参数:user_id=12021&type=signup或者user_id=12021&type=appoint

2.请求方式:POST

3.请求参数:

参数 类型 是否必须 描述
user_id int 必选 用户id
type int 必选 报名驾校填:signup---预约学车:appoint

4.接口返回结果

  1. 报名驾校--$type = signup
  2. {
  3. "code": 200,
  4. "data": {
  5. "present_day": [],
  6. "one_days_ago": {
  7. "order_info": [
  8. {
  9. "so_final_price": "4000.00",
  10. "so_username": "刘胜",
  11. "dt_time": "2016-04-15",
  12. "so_shifts_id": "普通班C1/C2",
  13. "so_phone": "15974024076"
  14. },
  15. {
  16. "so_final_price": "4500.00",
  17. "so_username": "王曹",
  18. "dt_time": "2016-04-15",
  19. "so_shifts_id": "VIP班C1/C2",
  20. "so_phone": "13866688858"
  21. }
  22. ],
  23. "total_order": 2,
  24. "total_money": "8500.00"
  25. },
  26. "two_days_ago": {
  27. "order_info": [
  28. {
  29. "so_final_price": "4500.00",
  30. "so_username": "李孟艳",
  31. "dt_time": "2016-04-13",
  32. "so_shifts_id": "VIP班C1/C2",
  33. "so_phone": "15375470581"
  34. }
  35. ],
  36. "total_order": 1,
  37. "total_money": "4500.00"
  38. },
  39. "three_days_ago": [],
  40. "four_days_ago": [],
  41. "five_days_ago": [],
  42. "six_days_ago": []
  43. }
  44. }
  45. 预约学车--$type = appoint
  46. {
  47. "code": 200,
  48. "data": {
  49. "present_day": [],
  50. "one_days_ago": {
  51. "order_info": [
  52. {
  53. "s_user_name": "",
  54. "dc_money": "130.00",
  55. "dt_time": "2016-04-14",
  56. "s_lesson_name": "科目二",
  57. "s_lisence_name": "C1",
  58. "s_user_phone": "13083069666"
  59. }
  60. ],
  61. "total_order": 1,
  62. "total_money": "130.00"
  63. },
  64. "two_days_ago": {
  65. "order_info": [
  66. {
  67. "s_user_name": "",
  68. "dc_money": "130.00",
  69. "dt_time": "2016-04-14",
  70. "s_lesson_name": "科目二",
  71. "s_lisence_name": "C1",
  72. "s_user_phone": "13470996600"
  73. }
  74. ],
  75. "total_order": 1,
  76. "total_money": "130.00"
  77. },
  78. "three_days_ago": [],
  79. "four_days_ago": [],
  80. "five_days_ago": [],
  81. "six_days_ago": []
  82. }
  83. }
参数 类型 描述
code int 状态码:200 --- 成功 其它 --- 异常
data array 返回数据集
- - -
present_day array 今日订单
one_days_ago array 前1天当天订单
two_days_ago array 前2天当天订单
three_days_ago array 前3天当天订单
four_days_ago array 前4天当天订单
five_days_ago array 前5天当天订单
six_days_ago array 前6天当天订单
-报名驾校- - -
order_info array 订单详细信息
so_final_price float 报名驾校费用
so_username string 学员姓名
dt_time int 报名时间
so_shifts_id string 班制
so_phone int 学员手机
total_order int 所有订单总数
total_money int 所有订单总金额
-预约学车- - -
order_info array 订单详细信息
dc_money float 预约学车费用
s_user_name string 学员姓名
dt_time int 预约学车订单时间
s_lesson_name string 科目名称
s_lisence_name int 驾照类型
s_user_phone int 学员手机
total_order int 所有订单总数
total_money int 所有订单总金额
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注