From e15b8b4f6975fbd53ed926278cee98b06b797fb7 Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 25 Oct 2021 10:31:25 +0800 Subject: [PATCH] judge: fix secret calc --- packages/hydrojudge/package.json | 2 +- packages/hydrojudge/src/hosts/hydro.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index f825dedd4..428a6c102 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "2.12.0", + "version": "2.12.1", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git", diff --git a/packages/hydrojudge/src/hosts/hydro.ts b/packages/hydrojudge/src/hosts/hydro.ts index fd7df4ccd..1fa6c3b53 100644 --- a/packages/hydrojudge/src/hosts/hydro.ts +++ b/packages/hydrojudge/src/hosts/hydro.ts @@ -109,7 +109,7 @@ class JudgeTask { this.config = await readCases( this.folder, { detail: this.session.config.detail, ...this.config }, - { next: this.next, key: md5(`${this.source}${getConfig('secret')}`) }, + { next: this.next, key: md5(`${this.source}/${getConfig('secret')}`) }, ); this.stat.judge = new Date(); const type = this.config.type || 'default';