* fix for bug storyChanged.

This commit is contained in:
王怡栋
2021-11-18 14:41:58 +08:00
parent 26b110b73a
commit 6df12ce1e9
3 changed files with 30 additions and 6 deletions
+2 -2
View File
@@ -21,10 +21,10 @@ class executionStoriesEntry extends entry
public function get($executionID)
{
if(empty($executionID)) $this->param('execution', 0);
if(empty($executionID)) return $this->sendError(400, 'Need executiion id.');
if(empty($executionID)) return $this->sendError(400, 'Need execution id.');
$control = $this->loadController('execution', 'story');
$control->story($executionID, $this->param('order', 'id_desc'), $this->param('type', 'all'), 0, 0, $this->param('limit', 20), $this->param('page', 1));
$control->story($executionID, $this->param('order', 'id_desc'), $this->param('status', 'all'), 0, 0, $this->param('limit', 20), $this->param('page', 1));
$data = $this->getData();
if(isset($data->status) and $data->status == 'success')