工单列表分类名称

This commit is contained in:
2025-07-04 15:42:03 +08:00
parent 6fa4b8ddfd
commit 92fd6d4d9f
+6 -2
View File
@@ -19,8 +19,12 @@ class TicketService
$res = (new TicketLogic())->list($params);
foreach ($res as $k => &$v) {
$name = isset($v['categorie']['translation']) ? $v['categorie']['translation']['name'] : '';
$res[$k]['categorie']['name'] = $name;
unset($res[$k]['categorie']['translation']);
if(isset($res[$k]['categorie'])){
$res[$k]['categorie']['name'] = $name;
}
if (isset($v['categorie']['translation'])){
unset($res[$k]['categorie']['translation']);
}
foreach ($v['attachments'] as &$attachments) {
$attachments['storage_path_full'] = (new \app\common\service\OssService())->generatePrivateUrl($attachments['storage_path']);
}