作者 郭盛
1 个管道 的构建 通过 耗费 0 秒

修改去掉必填登录

@@ -401,7 +401,6 @@ class Farm extends Api @@ -401,7 +401,6 @@ class Farm extends Api
401 * @ApiSummary (用户农场信息) 401 * @ApiSummary (用户农场信息)
402 * @ApiMethod (POST) 402 * @ApiMethod (POST)
403 * @ApiRoute (/api/farm/other) 403 * @ApiRoute (/api/farm/other)
404 - * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")  
405 * 404 *
406 * @ApiParams (name="farm_id", type="int", required=false, description="农场id") 405 * @ApiParams (name="farm_id", type="int", required=false, description="农场id")
407 * 406 *
@@ -418,7 +417,6 @@ class Farm extends Api @@ -418,7 +417,6 @@ class Farm extends Api
418 */ 417 */
419 public function other() 418 public function other()
420 { 419 {
421 - $user_id = $this->getUserId();  
422 $farm_id = $this->request->param('farm_id'); 420 $farm_id = $this->request->param('farm_id');
423 if(empty($farm_id)){ 421 if(empty($farm_id)){
424 $this->error('缺少必要参数'); 422 $this->error('缺少必要参数');
@@ -55,7 +55,6 @@ class Project extends Api @@ -55,7 +55,6 @@ class Project extends Api
55 * @ApiSummary (项目列表) 55 * @ApiSummary (项目列表)
56 * @ApiMethod (POST) 56 * @ApiMethod (POST)
57 * @ApiRoute (/api/project/get_all) 57 * @ApiRoute (/api/project/get_all)
58 - * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")  
59 * 58 *
60 * @ApiParams (name="farm_id", type="int", required=false, description="农场id") 59 * @ApiParams (name="farm_id", type="int", required=false, description="农场id")
61 * @ApiParams (name="page", type="inter", required=false, description="当前页(默认1)") 60 * @ApiParams (name="page", type="inter", required=false, description="当前页(默认1)")
@@ -79,7 +78,6 @@ class Project extends Api @@ -79,7 +78,6 @@ class Project extends Api
79 */ 78 */
80 public function get_all() 79 public function get_all()
81 { 80 {
82 - $user_id = $this->getUserId();  
83 // $domain_name = $this->request->domain();//域名 81 // $domain_name = $this->request->domain();//域名
84 $page = $this->request->param('page',1,'intval'); 82 $page = $this->request->param('page',1,'intval');
85 $pageNum = $this->request->param('pageNum',10,'intval'); 83 $pageNum = $this->request->param('pageNum',10,'intval');