工单列表分类名称
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user