main.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. ),
  31. 'response' => array
  32. (
  33. 'info' => '报告信息',
  34. ),
  35. 'order' => 99,
  36. 'type' => 2,
  37. # 安全加密
  38. 'secure' => true,
  39. ),
  40. 'score.submit' => array
  41. (
  42. 'name' => '金币兑换',
  43. 'request' => array
  44. (
  45. 'uid' => '用户id',
  46. ),
  47. 'response' => array
  48. (
  49. 'info' => '信息',
  50. ),
  51. 'order' => 98,
  52. 'type' => 2,
  53. # 安全加密
  54. 'secure' => true,
  55. ),
  56. 'group.submit' => array
  57. (
  58. 'name' => '加入小组',
  59. 'request' => array
  60. (
  61. 'uid' => '用户id',
  62. ),
  63. 'response' => array
  64. (
  65. 'info' => '信息',
  66. ),
  67. 'order' => 98,
  68. 'type' => 2,
  69. # 安全加密
  70. 'secure' => true,
  71. ),
  72. 'user.submit' => array
  73. (
  74. 'name' => '资料认证',
  75. 'request' => array
  76. (
  77. 'uid' => '用户id',
  78. ),
  79. 'response' => array
  80. (
  81. 'info' => '信息',
  82. ),
  83. 'order' => 98,
  84. 'type' => 2,
  85. # 安全加密
  86. 'secure' => true,
  87. ),
  88. );