Compare commits
No commits in common. "96b754ef4a290ceea2906c7d12d2d1c16f06a493" and "093275816560b63a9d1460b1df6f056f9c23cef4" have entirely different histories.
96b754ef4a
...
0932758165
|
@ -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('请求成功',[]);
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace app\api\controller;
|
||||
|
||||
class monitorController extends BaseApiController
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue