* add my bug data for api.

This commit is contained in:
王怡栋
2021-10-18 10:24:28 +08:00
parent 375b74b9d6
commit 06f6d31579
+14
View File
@@ -98,6 +98,20 @@ class userEntry extends Entry
$info->task['tasks'] = $data->data->tasks;
}
break;
case 'bug':
$info->bug = array('total' => 0, 'bugs' => array());
$control = $this->loadController('my', 'bug');
$control->bug($this->param('type', 'assignedTo'), $this->param('order', 'id_desc'), $this->param('total', 0), $this->param('limit', 5), $this->param('page', 1));
$data = $this->getData();
if($data->status == 'success')
{
$info->bug['total'] = $data->data->pager->recTotal;
$info->bug['bugs'] = $data->data->bugs;
}
break;
case 'todo':
$info->todo = array('total' => 0, 'todos' => array());