mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-01 10:02:01 +00:00
向判题服务器传递授权 token
This commit is contained in:
parent
efee635173
commit
f1449962e4
@ -42,7 +42,7 @@ class JudgeDispatcher(object):
|
||||
|
||||
s = TimeoutServerProxy("http://" + judge_server.ip + ":" + str(judge_server.port), timeout=20)
|
||||
|
||||
data = s.run(self.submission.id, self.submission.language,
|
||||
data = s.run(judge_server.token, self.submission.id, self.submission.language,
|
||||
self.submission.code, self.time_limit, self.memory_limit, self.test_case_id)
|
||||
# 编译错误
|
||||
if data["code"] == 1:
|
||||
|
Loading…
Reference in New Issue
Block a user