|
|
|
@ -337,7 +337,7 @@ if (token != null) {
|
|
|
|
|
socket.on('finish', function (p) { |
|
|
|
|
console.log("Judge finished"); |
|
|
|
|
let max=0; |
|
|
|
|
if (p && p.result && p.result.judge) { |
|
|
|
|
if (p && p.result && p.result.judge && p.result.judge.subtasks) { |
|
|
|
|
p.result.judge.subtasks.forEach(function (item) { |
|
|
|
|
item.cases.forEach(function (one) { |
|
|
|
|
max = one.result.time |
|
|
|
@ -353,7 +353,7 @@ if (token != null) {
|
|
|
|
|
socket.emit('join', token, function (data) { |
|
|
|
|
console.log("join! ", data); |
|
|
|
|
if (data && data.ok) { |
|
|
|
|
if (data.finished && data.result && data.result.judge) { |
|
|
|
|
if (data.finished && data.result && data.result.judge && data.result.judge.subtasks) { |
|
|
|
|
let max=0; |
|
|
|
|
data.result.judge.subtasks.forEach(function (item) { |
|
|
|
|
item.cases.forEach(function (one) { |
|
|
|
|