作者 lyh

gx

@@ -74,12 +74,11 @@ class NavController extends BaseController @@ -74,12 +74,11 @@ class NavController extends BaseController
74 $items = $matchingDetail; 74 $items = $matchingDetail;
75 } 75 }
76 if (!empty($item['sub']) && is_array($item['sub'])) { 76 if (!empty($item['sub']) && is_array($item['sub'])) {
77 - $items['sub'] = $this->findDetailsList($item['sub'], $detailsList); 77 + $items['sub'] = $this->findDetailsList($item['sub'], $detailsList)['result'];
78 } 78 }
79 $result[] = $items; 79 $result[] = $items;
80 } 80 }
81 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(count($detailsList), true) . PHP_EOL, FILE_APPEND);  
82 - return $result; 81 + return ['result'=>$result,'detailsList'=>$detailsList];
83 } 82 }
84 83
85 84