mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
core: send: detailed logs
This commit is contained in:
1 parent
0fcbcf4f1a
commit
437bfc5e6e
4 files changed
+7
-7
No files matched your search
@@ -63,11 +63,11 @@ class ProxySendRequestHandler extends Handler {
|
||||
let res = await superagent.post(`${url}d/${domainId}/problem/send`)
|
||||
.send({ operation: 'info', token: tokenId })
|
||||
.catch((e) => e);
|
||||
if (res instanceof Error) throw new RemoteOnlineJudgeError(res.message);
|
||||
if (res instanceof Error) throw new RemoteOnlineJudgeError(`[Post Target/Send/Info] ${res.message}`);
|
||||
res = await superagent.post(`${endpoint}/problem/receive`).send({
|
||||
operation: 'request', url: `${url}d/${domainId}/problem/send`, tokenId, expire,
|
||||
}).catch((e) => e);
|
||||
if (res instanceof Error) throw new RemoteOnlineJudgeError(res.message);
|
||||
if (res instanceof Error) throw new RemoteOnlineJudgeError(`[Post Target/Receive/Request] ${res.message}`);
|
||||
this.response.body = { code: 0 };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/center",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
|
||||
Reference in new issue
Block a user