버그 수정 시도2

This commit is contained in:
2020-06-02 01:06:00 +09:00
parent bd66871b0e
commit b9664dc710
+2 -1
View File
@@ -92,10 +92,11 @@ class General implements iAction{
$this->raw = $raw; $this->raw = $raw;
$this->rawCity = $city; $this->rawCity = $city;
$this->resultTurn = new LastTurn();
if(key_exists('last_turn', $this->raw)){ if(key_exists('last_turn', $this->raw)){
$this->lastTurn = LastTurn::fromJson($this->raw['last_turn']); $this->lastTurn = LastTurn::fromJson($this->raw['last_turn']);
$this->resultTurn = $this->lastTurn->duplicate();
} }
$this->resultTurn = new LastTurn();
if($year !== null && $month !== null){ if($year !== null && $month !== null){
$this->initLogger($year, $month); $this->initLogger($year, $month);