|
@@ -134,7 +134,6 @@ class ClientService implements ClientServiceInterface
|
|
|
// var_dump($catiall, 'catiall');//拼音
|
|
|
$templateData = [];
|
|
|
switch ($getpage) {
|
|
|
-
|
|
|
case 'index':
|
|
|
$ceng = $data['template']['index'];
|
|
|
var_dump($ceng, 'ceng================');
|
|
@@ -237,8 +236,13 @@ class ClientService implements ClientServiceInterface
|
|
|
$componetList[$key]['componentData']['data']['child']['category_id'] = $child_id;
|
|
|
$componetList[$key]['componentData']['data']['child']['textnum'] = $child_textArticles;
|
|
|
$componetList[$key]['componentData']['data']['child']['imgnum'] = $child_imgArticles;
|
|
|
+ $componetList[$key]['componentData']['data']['child']['is_url'] = $websiteInfoIndexed[$child_id]->is_url ?? 0;
|
|
|
+
|
|
|
//取出自己
|
|
|
$all_childcat = $cat_1st_arr[$category_id];
|
|
|
+
|
|
|
+ $componetList[$key]['componentData']['data']['child']['children_count'] = count($all_childcat);
|
|
|
+
|
|
|
$processedChildCat = array_map(function ($v) use ($websiteInfoIndexed, $cat_1st_arr) {
|
|
|
// 从 $websiteInfoIndexed 中获取对应的数据
|
|
|
$info = $websiteInfoIndexed[$v];
|