工单列表分类名称
This commit is contained in:
@@ -19,8 +19,12 @@ class TicketService
|
|||||||
$res = (new TicketLogic())->list($params);
|
$res = (new TicketLogic())->list($params);
|
||||||
foreach ($res as $k => &$v) {
|
foreach ($res as $k => &$v) {
|
||||||
$name = isset($v['categorie']['translation']) ? $v['categorie']['translation']['name'] : '';
|
$name = isset($v['categorie']['translation']) ? $v['categorie']['translation']['name'] : '';
|
||||||
$res[$k]['categorie']['name'] = $name;
|
if(isset($res[$k]['categorie'])){
|
||||||
unset($res[$k]['categorie']['translation']);
|
$res[$k]['categorie']['name'] = $name;
|
||||||
|
}
|
||||||
|
if (isset($v['categorie']['translation'])){
|
||||||
|
unset($res[$k]['categorie']['translation']);
|
||||||
|
}
|
||||||
foreach ($v['attachments'] as &$attachments) {
|
foreach ($v['attachments'] as &$attachments) {
|
||||||
$attachments['storage_path_full'] = (new \app\common\service\OssService())->generatePrivateUrl($attachments['storage_path']);
|
$attachments['storage_path_full'] = (new \app\common\service\OssService())->generatePrivateUrl($attachments['storage_path']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user