main.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. # 注册api,这里是为了安全考虑,否则可以不用在此注册,注册之后
  3. # api仅有三种类型:get、update、delete
  4. return array
  5. (
  6. 'info.submit' => array
  7. (
  8. 'name' => '领取任务',
  9. 'request' => array
  10. (
  11. 'id' => '任务id',
  12. 'uid' => '用户id',
  13. ),
  14. 'response' => array
  15. (
  16. 'info' => '领取信息',
  17. ),
  18. 'order' => 100,
  19. 'type' => 2,
  20. # 安全加密
  21. 'secure' => true,
  22. ),
  23. 'report.submit' => array
  24. (
  25. 'name' => '发布报告',
  26. 'request' => array
  27. (
  28. 'id' => '任务id',
  29. 'uid' => '用户id',
  30. 'report_id' => '报告id',
  31. ),
  32. 'response' => array
  33. (
  34. 'info' => '报告信息',
  35. ),
  36. 'order' => 99,
  37. 'type' => 2,
  38. # 安全加密
  39. 'secure' => true,
  40. ),
  41. 'score.submit' => array
  42. (
  43. 'name' => '金币兑换',
  44. 'request' => array
  45. (
  46. 'uid' => '用户id',
  47. ),
  48. 'response' => array
  49. (
  50. 'info' => '信息',
  51. ),
  52. 'order' => 98,
  53. 'type' => 2,
  54. # 安全加密
  55. 'secure' => true,
  56. ),
  57. 'group.submit' => array
  58. (
  59. 'name' => '加入小组',
  60. 'request' => array
  61. (
  62. 'uid' => '用户id',
  63. ),
  64. 'response' => array
  65. (
  66. 'info' => '信息',
  67. ),
  68. 'order' => 98,
  69. 'type' => 2,
  70. # 安全加密
  71. 'secure' => true,
  72. ),
  73. 'user.submit' => array
  74. (
  75. 'name' => '资料认证',
  76. 'request' => array
  77. (
  78. 'uid' => '用户id',
  79. ),
  80. 'response' => array
  81. (
  82. 'info' => '信息',
  83. ),
  84. 'order' => 98,
  85. 'type' => 2,
  86. # 安全加密
  87. 'secure' => true,
  88. ),
  89. );