From e18e321fecbb1e5e6f20444d91bfdb320858a331 Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Tue, 29 Apr 2025 16:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=B7=BB=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E7=BB=84=E5=8F=96=E6=B6=88=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/api/controller/DeviceController.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Server/application/api/controller/DeviceController.php b/Server/application/api/controller/DeviceController.php index d1734b0f..73935cae 100644 --- a/Server/application/api/controller/DeviceController.php +++ b/Server/application/api/controller/DeviceController.php @@ -361,11 +361,14 @@ class DeviceController extends BaseController // 发送请求 $result = requestCurl($this->baseUrl . 'api/DeviceGroup/new', $params, 'POST', $header,'json'); if(empty($result)){ - $res = $this->getGroupList([],true); - $res = json_decode($res,true); - if(!empty($res['data'])){ - $data = $res['data'][0]; - } + // $res = $this->getGroupList([],true); + // $res = json_decode($res,true); + // if(!empty($res['data'])){ + // $data = $res['data'][0]; + // } + + $data = []; + if($isInner){ return json_encode(['code'=>200,'msg'=>'success','data'=>$data]); }else{