更新:调整获取商家分类接口返回的数据

master
zwesy 2021-12-02 11:01:51 +08:00
parent 19e762187c
commit edb870b4d6
1 changed files with 1 additions and 4 deletions

View File

@ -112,7 +112,6 @@ class Dictionary extends Base
*/
public function getBusinessTypeList(): Json
{
$recursionChildren = $this->request->param('recursion/d', 0);
$pid = $this->request->param('pid/d', 0);
$whereMap = [];
@ -124,9 +123,7 @@ class Dictionary extends Base
$items = $repo->getBusinessTypeList($whereMap, [], null, ['pid'=>'asc']);
$list = $items->toArray();
if ($recursionChildren > 0) {
$list = $repo->recursionChildrenList($list, $pid, 'pid', 'id');
}
$list = $repo->recursionChildrenList($list, $pid, 'pid', 'id');
return $this->json(0, 'success', $list);
}