Browse Source

index_channel中返回的$list增加array_values

master
李可松 4 years ago
parent
commit
87288bed3d
  1. 2
      app/Http/Controllers/Api/CategoryController.php

2
app/Http/Controllers/Api/CategoryController.php

@ -42,6 +42,6 @@ class CategoryController extends Controller
$parent_pid = $list[$parent_pid]['pid']; $parent_pid = $list[$parent_pid]['pid'];
} }
} }
return $this->success($list);
return $this->success(array_values($list));
} }
} }
Loading…
Cancel
Save