This commit is contained in:
Jerry 2025-05-04 10:18:40 +08:00
parent b73772420a
commit 4c1a93ce14
2 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ class SystemController {
try {
const token = req.body.token;
if (tools.checkToken(token.toString())) {
await SystemService.systemRestart();
await response.success(res, '核心正在重启..');
await SystemService.systemRestart();
} else {
await tools.tokenCheckFailed(res, token);
}

View File

@ -48,7 +48,7 @@ async function testGetAPI() {
async function testPostAPI() {
try {
const response = await axios.post('https://core.crystelf.top/api/system/getRestartTime', {
const response = await axios.post('https://core.crystelf.top/api/system/restart', {
token: 114113,
});
console.log('[HTTP][POST] Response:', response.data);