作者 lyh

变更数据

@@ -51,7 +51,7 @@ class TicketUploadDataController extends BaseController @@ -51,7 +51,7 @@ class TicketUploadDataController extends BaseController
51 ]); 51 ]);
52 $data = $this->model->lists($this->map, $this->page, $this->row, $this->order); 52 $data = $this->model->lists($this->map, $this->page, $this->row, $this->order);
53 foreach ($data as &$item) { 53 foreach ($data as &$item) {
54 - $item['text']['cate_name'] = $this->cateText($item['type'],$item['text']['category_id']); 54 + $item['text']['cate_name'] = $this->cateText($item['type'],$item['text']['category_id'] ?? []);
55 } 55 }
56 $this->response('success', Code::SUCCESS, $data); 56 $this->response('success', Code::SUCCESS, $data);
57 } 57 }