$selectArea = Area::get($wz);
$selectArea->title = $selectArea->name;
$selectArea->tag_key = 'wz';
$selectTags[] = $selectArea->toArray('update_time', false);
}
if (!empty($wzc)) {
$selectAreasChild = Area::get($wzc);
$selectAreasChild->title = $selectAreasChild->name;
$selectAreasChild->tag_key = 'wz';
$selectTags[] = $selectAreasChild->toArray('update_time', false);
}
if(!empty($kw)){
$selectTags[] = ['title'=>'关键词:'.$kw];
}
$tagsData = ['jjTag' => $jjTag, 'areasTag' => $areas, 'areasChildTag' => $areasChildTag];
return ['tagsData' => $tagsData, 'selectTags' => $selectTags];
}
/**
* 用户当前已选择的筛选标签
* @param $tag
* @param $value
* @param $key
* @return array
*/
public function getCommunityListSelectTag($tag, $value, $key){
$selectTag = [];
if ($key != 'wz') {
$content = $tag['content'];
} else {
$content = $tag;
}
foreach ($content as $item) {
if ($item['id'] == $value) {
$item['tag_key'] = $key;
if ($item['name']) {
$item['title'] = $item['name'];
}
trace调用栈
app\resold\service\CommunityService->getCommunityListTag(...)
app\house\pc\controller\HomeController->communityList(...)
ReflectionMethod->invokeArgs(...)
rap\web\mvc\HandlerAdapter->invokeRequest(...)
rap\web\mvc\ControllerHandlerAdapter->handle(...)
rap\web\mvc\Dispatcher->doDispatch(...)
rap\web\Application->start(...)
require(...)