Compare commits

..

No commits in common. "96b754ef4a290ceea2906c7d12d2d1c16f06a493" and "093275816560b63a9d1460b1df6f056f9c23cef4" have entirely different histories.

2 changed files with 2 additions and 15 deletions

View File

@ -37,13 +37,8 @@ class IndexController extends BaseApiController
public function index(): Json
{
$params = $this->request->get('land_id');
//获取土地信息
if(isset($params['land_id']) && $params['land_id'] !=''){
$land = Land::where('user_id',$this->userId)->where('id',$params['land_id'])->order('id desc')->findOrEmpty();
}else{
$land = Land::where('user_id',$this->userId)->order('id desc')->findOrEmpty();
}
//获取土地信息
$land = Land::where('user_id',$this->userId)->order('id desc')->findOrEmpty();
if($land->isEmpty()){
return $this->success('请求成功',[]);
}

View File

@ -1,8 +0,0 @@
<?php
namespace app\api\controller;
class monitorController extends BaseApiController
{
}