|
...
|
...
|
@@ -52,17 +52,18 @@ class TicketUploadDataLogic extends BaseLogic |
|
|
|
if(!isset($map['project_type']) || empty($map['project_type'])){
|
|
|
|
$map['project_type'] = $this->model::TYPE_SIX;
|
|
|
|
}
|
|
|
|
ProjectServer::useProject($map['project_id']);
|
|
|
|
$data = $this->model->lists($map,$page,$row,$order);
|
|
|
|
if($map['project_type'] == $this->model::TYPE_SIX){
|
|
|
|
ProjectServer::useProject($map['project_id']);
|
|
|
|
if(!empty($data) && !empty($data['list'])){
|
|
|
|
foreach ($data['list'] as &$v){
|
|
|
|
$v = $this->getHandleFileImage($v);
|
|
|
|
$v['text']['cate_name'] = $this->cateText($v['type'],$v['text']['category_id'] ?? []);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
}
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|