Scenario에서 event를 추가할때 json_encode를 빼먹은 점 수정
This commit is contained in:
@@ -329,6 +329,13 @@ class Scenario{
|
||||
$event->tryRunEvent($env);
|
||||
}
|
||||
|
||||
$events = array_map(function($rawEvent){
|
||||
return [
|
||||
'cond'=>Json::encode($rawEvent['cond']),
|
||||
'action'=>Json::encode($rawEvent['action'])
|
||||
];
|
||||
}, $this->events);
|
||||
|
||||
$db->insert('event', $this->events);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user