dataLists(new DeviceLists()); } /** * @desc 删除设备 */ public function remove() { try { $params = (new DeviceValidate())->post()->goCheck('remove'); $result = DeviceLogic::removeDevice($params); if ($result) { return $this->success(); } return $this->fail(DeviceLogic::getError()); } catch (HttpResponseException $e) { return $this->fail($e->getResponse()->getData()['msg'] ?? ''); } } }