증축,감축,천도 버그
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user