row->devices->device_name; $box_name = $this->row->name; $rule = json_encode(['get'=>$box_name]); $res = (new DeviceServer())->sendMsg(intval($device_name),$rule); if($res['Success'] == true){ return $this->response()->success('获取规则成功')->refresh(); } return $this->response()->error('获取规则失败'); } }