dataLists(new RobotLists()); } /** * @desc 删除机器人 */ public function delete() { try { $params = (new RobotValidate())->post()->goCheck('delete'); $result = RobotLogic::deleteRobot($params); if ($result) { return $this->success(); } return $this->fail(RobotLogic::getError()); } catch (HttpResponseException $e) { return $this->fail($e->getResponse()->getData()['msg'] ?? ''); } } }