| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 | 
							- <?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',
 
- 		),
 
- 		'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,
 
- 	),
 
- );
 
 
  |