증축,감축,천도 버그

This commit is contained in:
2020-04-30 04:03:43 +09:00
parent e2ec3ef532
commit efffb46281
6 changed files with 21 additions and 14 deletions
+6 -2
View File
@@ -12,7 +12,7 @@ class LastTurn{
$this->setCommand($command);
$this->setArg($arg);
$this->setTerm($term);
$this->setSeq($term);
$this->setSeq($seq);
}
static function fromJson(?string $json):self{
@@ -23,7 +23,8 @@ class LastTurn{
$obj = new static(
$values['command']??null,
$values['arg']??null,
$values['term']??null
$values['term']??null,
$values['seq']??null
);
return $obj;
}
@@ -73,6 +74,9 @@ class LastTurn{
if($this->term !== null){
$result['term'] = $this->term;
}
if($this->seq !== null){
$result['seq'] = $this->seq;
}
return Json::encode($result);
}