状态调整

This commit is contained in:
2025-07-04 15:27:09 +08:00
parent 510fec0533
commit 6fa4b8ddfd
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -18,8 +18,9 @@ class TicketService
{
$res = (new TicketLogic())->list($params);
foreach ($res as $k => &$v) {
$res[$k]['categorie']['name'] = isset($v['categorie']['translation']) ? $v['categorie']['translation']['name'] : '';
unset($v['categorie']['translation']);
$name = isset($v['categorie']['translation']) ? $v['categorie']['translation']['name'] : '';
$res[$k]['categorie']['name'] = $name;
unset($res[$k]['categorie']['translation']);
foreach ($v['attachments'] as &$attachments) {
$attachments['storage_path_full'] = (new \app\common\service\OssService())->generatePrivateUrl($attachments['storage_path']);
}