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

修改去掉必填登录

... ... @@ -401,7 +401,6 @@ class Farm extends Api
* @ApiSummary (用户农场信息)
* @ApiMethod (POST)
* @ApiRoute (/api/farm/other)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
*
* @ApiParams (name="farm_id", type="int", required=false, description="农场id")
*
... ... @@ -418,7 +417,6 @@ class Farm extends Api
*/
public function other()
{
$user_id = $this->getUserId();
$farm_id = $this->request->param('farm_id');
if(empty($farm_id)){
$this->error('缺少必要参数');
... ...
... ... @@ -55,7 +55,6 @@ class Project extends Api
* @ApiSummary (项目列表)
* @ApiMethod (POST)
* @ApiRoute (/api/project/get_all)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
*
* @ApiParams (name="farm_id", type="int", required=false, description="农场id")
* @ApiParams (name="page", type="inter", required=false, description="当前页(默认1)")
... ... @@ -79,7 +78,6 @@ class Project extends Api
*/
public function get_all()
{
$user_id = $this->getUserId();
// $domain_name = $this->request->domain();//域名
$page = $this->request->param('page',1,'intval');
$pageNum = $this->request->param('pageNum',10,'intval');
... ...