Skip to content

Commit 4299cc1

Browse files
committed
fix #96(5)/judge/se: refactor clientid and accesstoken field names
1 parent 24f42af commit 4299cc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

judge/sphere_engine/lib.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ function judge() {
101101

102102
$task = &$this->task;
103103

104-
$endpoint = $task->var1;
105-
$accesstoken = $task->var2;
104+
$endpoint = $task->clientid;
105+
$accesstoken = $task->accesstoken;
106106

107107
// create client.
108108
$client = new CompilersClientV4($accesstoken, $endpoint);
@@ -189,4 +189,4 @@ function judge() {
189189
}
190190

191191

192-
}
192+
}

0 commit comments

Comments
 (0)