From 8be106cf9958237fc04069f4085a54ce9887e57d Mon Sep 17 00:00:00 2001 From: zsgsdesign Date: Sun, 24 Oct 2021 06:51:14 +0800 Subject: [PATCH] add namespace --- Submitter.php | 2 +- babel.json | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Submitter.php b/Submitter.php index aedc18c..cadacdf 100644 --- a/Submitter.php +++ b/Submitter.php @@ -7,6 +7,7 @@ use App\Models\OJModel; use Illuminate\Support\Facades\Validator; use Requests; +use Exception; class Submitter extends Curl { @@ -72,7 +73,6 @@ private function _submit() 'handle' => $this->selectedJudger['handle'], ]); $this->sub['jid'] = $this->selectedJudger["jid"]; - \Log::debug($response); if (preg_match('/Submission\+received\+with\+ID\+(\d+)/', $response, $match)) { $this->sub['remote_id'] = $match[1]; } else { diff --git a/babel.json b/babel.json index b11e4f8..de0923a 100644 --- a/babel.json +++ b/babel.json @@ -6,7 +6,7 @@ "description": "UVaLive interface for NOJ", "license": "MIT", "repository":"https://github.com/NJUPTAAA/NOJ_Extension_UVaLive", - "version":"0.2.1", + "version":"0.2.2", "website":"https://icpcarchive.ecs.baylor.edu/", "provider":{ "judger":"Judger", @@ -14,7 +14,10 @@ "submitter":"Submitter", "installer":"Installer" }, + "namespace": { + "uvalive": "UVaLive*" + }, "require":{ - "NOJ":"^0.3.2" + "NOJ":"^0.17.2" } }