This commit is contained in:
mkm 2024-01-09 11:38:20 +08:00
parent c15e44eadf
commit ece1f6540c
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class Task extends BasicApi
$taskInfo = \app\common\Model\Task::get($task['id']);
$task['parentDone'] = $taskInfo['parentDone'];
$task['hasUnDone'] = $taskInfo['hasUnDone'];
$task['priText'] = $status[$task['pri']];
$task['priText'] = $status[$task['pri']??0];
$task['executor'] = Member::where(['code' => $task['assign_to']])->field('name,avatar')->find();
$task['projectInfo'] = \app\common\Model\Project::where(['code' => $task['project_code']])->field('name,code')->find();
}