feature: 面板

This commit is contained in:
zhuyu 2025-05-28 11:07:42 +08:00
parent faa9d20ab8
commit 35adcd12d9
2 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ class Doc extends Backend
->paginate($limit);
foreach ($list as $k => $row) {
$list[$k]['url'] = cdnurl($row['path']);
$list[$k]['fileurl'] = cdnurl($row['path']);
$list[$k]['filetype'] = pathinfo($list[$k]['url'], PATHINFO_EXTENSION);
}
@ -108,7 +108,7 @@ class Doc extends Backend
$this->success("Ajax请求成功", null, ['id' => $ids]);
}
$row['url'] = cdnurl($row['path']);
$row['fileurl'] = cdnurl($row['path']);
$this->view->assign("row", $row->toArray());

View File

@ -106,7 +106,7 @@ class Task extends Backend
}
$list[$k]['refuse_reason'] = $row['refuse_reason'] ?? '';
$list[$k]['url'] = cdnurl($row['prove_file_path']);
$list[$k]['fileurl'] = cdnurl($row['prove_file_path']);
$list[$k]['filetype'] = pathinfo($list[$k]['url'], PATHINFO_EXTENSION);
}