|
@@ -88,7 +88,7 @@ class TicketUploadDataController extends BaseController |
|
@@ -88,7 +88,7 @@ class TicketUploadDataController extends BaseController |
|
88
|
* @method :post
|
88
|
* @method :post
|
|
89
|
* @time :2025/9/29 17:18
|
89
|
* @time :2025/9/29 17:18
|
|
90
|
*/
|
90
|
*/
|
|
91
|
- public function cateText($type,$category_id,$is_array = false)
|
91
|
+ public function cateText($type,$category_id,$keyword_id = [],$is_array = false)
|
|
92
|
{
|
92
|
{
|
|
93
|
if(empty($category_id)){
|
93
|
if(empty($category_id)){
|
|
94
|
return '';
|
94
|
return '';
|
|
@@ -108,7 +108,7 @@ class TicketUploadDataController extends BaseController |
|
@@ -108,7 +108,7 @@ class TicketUploadDataController extends BaseController |
|
108
|
->pluck($filed, 'id')
|
108
|
->pluck($filed, 'id')
|
|
109
|
->toArray();
|
109
|
->toArray();
|
|
110
|
if($type == 1){
|
110
|
if($type == 1){
|
|
111
|
- $keywod_arr = $keywodModel->whereIn('id', (array)$category_id)
|
111
|
+ $keywod_arr = $keywodModel->whereIn('id', (array)$keyword_id)
|
|
112
|
->pluck($filed, 'id')
|
112
|
->pluck($filed, 'id')
|
|
113
|
->toArray();
|
113
|
->toArray();
|
|
114
|
return ['keywod_arr' => $keywod_arr, 'cate_arr' => $cate_arr];
|
114
|
return ['keywod_arr' => $keywod_arr, 'cate_arr' => $cate_arr];
|
|
@@ -141,7 +141,7 @@ class TicketUploadDataController extends BaseController |
|
@@ -141,7 +141,7 @@ class TicketUploadDataController extends BaseController |
|
141
|
$this->response('当前数据不存在或已被删除',Code::SYSTEM_ERROR);
|
141
|
$this->response('当前数据不存在或已被删除',Code::SYSTEM_ERROR);
|
|
142
|
}
|
142
|
}
|
|
143
|
ProjectServer::useProject($info['project_id']);
|
143
|
ProjectServer::useProject($info['project_id']);
|
|
144
|
- $info['text']['cate_name'] = $this->cateText($info['type'],$info['text']['category_id'] ?? [],true);
|
144
|
+ $info['text']['cate_name'] = $this->cateText($info['type'],$info['text']['category_id'] ?? [],$info['text']['keyword_id'] ?? [],true);
|
|
145
|
$info = $this->getHandleFileImage($info);
|
145
|
$info = $this->getHandleFileImage($info);
|
|
146
|
DB::disconnect('custom_mysql');
|
146
|
DB::disconnect('custom_mysql');
|
|
147
|
$this->response('success', Code::SUCCESS, $info);
|
147
|
$this->response('success', Code::SUCCESS, $info);
|