mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: detail setting (#78)
This commit is contained in:
1 parent
7bde6a922c
commit
9cdd47d256
3 files changed
+3
-3
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "2.5.16",
|
"version": "2.5.17",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ export default class Hydro {
|
|||||||
|
|
||||||
constructor(config) {
|
constructor(config) {
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.config.detail = this.config.detail || true;
|
this.config.detail = this.config.detail ?? true;
|
||||||
this.config.cookie = this.config.cookie || '';
|
this.config.cookie = this.config.cookie || '';
|
||||||
this.config.last_update_at = this.config.last_update_at || 0;
|
this.config.last_update_at = this.config.last_update_at || 0;
|
||||||
if (!this.config.server_url.startsWith('http')) this.config.server_url = `http://${this.config.server_url}`;
|
if (!this.config.server_url.startsWith('http')) this.config.server_url = `http://${this.config.server_url}`;
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ export default class VJ4 {
|
|||||||
|
|
||||||
constructor(config) {
|
constructor(config) {
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.config.detail = this.config.detail || true;
|
this.config.detail = this.config.detail ?? true;
|
||||||
this.config.cookie = this.config.cookie || '';
|
this.config.cookie = this.config.cookie || '';
|
||||||
this.config.last_update_at = this.config.last_update_at || 0;
|
this.config.last_update_at = this.config.last_update_at || 0;
|
||||||
if (!this.config.server_url.startsWith('http')) this.config.server_url = `http://${this.config.server_url}`;
|
if (!this.config.server_url.startsWith('http')) this.config.server_url = `http://${this.config.server_url}`;
|
||||||
|
|||||||
Reference in new issue
Block a user