12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- # 注册api,这里是为了安全考虑,否则可以不用在此注册,注册之后
- # api仅有三种类型:get、update、delete
- return array
- (
- 'info.submit' => array
- (
- 'name' => '领取任务',
- 'request' => array
- (
- 'id' => '任务id',
- 'uid' => '用户id',
- ),
- 'response' => array
- (
- 'info' => '领取信息',
- ),
- 'order' => 100,
- 'type' => 2,
- # 安全加密
- 'secure' => true,
- ),
-
- 'report.submit' => array
- (
- 'name' => '发布报告',
- 'request' => array
- (
- 'id' => '任务id',
- 'uid' => '用户id',
- 'report_id' => '报告id',
- ),
- 'response' => array
- (
- 'info' => '报告信息',
- ),
- 'order' => 99,
- 'type' => 2,
- # 安全加密
- 'secure' => true,
- ),
- 'score.submit' => array
- (
- 'name' => '金币兑换',
- 'request' => array
- (
- 'uid' => '用户id',
- ),
- 'response' => array
- (
- 'info' => '信息',
- ),
- 'order' => 98,
- 'type' => 2,
- # 安全加密
- 'secure' => true,
- ),
- 'group.submit' => array
- (
- 'name' => '加入小组',
- 'request' => array
- (
- 'uid' => '用户id',
- ),
- 'response' => array
- (
- 'info' => '信息',
- ),
- 'order' => 98,
- 'type' => 2,
- # 安全加密
- 'secure' => true,
- ),
- 'user.submit' => array
- (
- 'name' => '资料认证',
- 'request' => array
- (
- 'uid' => '用户id',
- ),
- 'response' => array
- (
- 'info' => '信息',
- ),
- 'order' => 98,
- 'type' => 2,
- # 安全加密
- 'secure' => true,
- ),
- );
|