$this->row->id])->get()->groupBy('box_name'); foreach ($locks as $lock ){ } $res = (new DeviceServer())->sendMsg(868626044260522,$rule); if($res['Success'] == true){ return $this->response()->success('更新设备规则成功')->refresh(); } else { return $this->response()->error('更新命令失败'); } } }