正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论