小问题:$arr ['category'] = $this->category ? explode (' - ', $this->category->full_name) : '';
$arr['category'] = $this->category ? explode('-', $this->category->full_name) : ''; 这里的' - '应该没有空格'-',不知道是笔误还是显示问题。
推荐文章: