CCSWebsite/console/ins/send-command.php

17 lines
434 B
PHP
Raw Normal View History

2025-06-17 01:43:15 +00:00
<?php
require_once 'index.php'; // 引入配置和 API 函数
$uuid = $_POST['uuid'] ?? '';
$daemonId = $_POST['daemonId'] ?? '';
$command = $_POST['command'] ?? '';
if ($uuid && $daemonId && $command) {
callApi('protected_instance/command', 'GET', [
'instanceUuid' => $uuid,
'daemonId' => $daemonId,
'command' => $command
]);
}
header("Location: index.php?uuid={$uuid}&daemonId={$daemonId}");
exit;