{{info}}
{{msg}}
  
  1. $selectArea = Area::get($wz);
  2. $selectArea->title = $selectArea->name;
  3. $selectArea->tag_key = 'wz';
  4. $selectTags[] = $selectArea->toArray('update_time', false);
  5. }
  6. if (!empty($wzc)) {
  7. $selectAreasChild = Area::get($wzc);
  8. $selectAreasChild->title = $selectAreasChild->name;
  9. $selectAreasChild->tag_key = 'wz';
  10. $selectTags[] = $selectAreasChild->toArray('update_time', false);
  11. }
  12. if(!empty($kw)){
  13. $selectTags[] = ['title'=>'关键词:'.$kw];
  14. }
  15. $tagsData = ['jjTag' => $jjTag, 'areasTag' => $areas, 'areasChildTag' => $areasChildTag];
  16. return ['tagsData' => $tagsData, 'selectTags' => $selectTags];
  17. }
  18. /**
  19. * 用户当前已选择的筛选标签
  20. * @param $tag
  21. * @param $value
  22. * @param $key
  23. * @return array
  24. */
  25. public function getCommunityListSelectTag($tag, $value, $key){
  26. $selectTag = [];
  27. if ($key != 'wz') {
  28. $content = $tag['content'];
  29. } else {
  30. $content = $tag;
  31. }
  32. foreach ($content as $item) {
  33. if ($item['id'] == $value) {
  34. $item['tag_key'] = $key;
  35. if ($item['name']) {
  36. $item['title'] = $item['name'];
  37. }
trace调用栈
    
  1. app\resold\service\CommunityService->getCommunityListTag(...)
  2. app\house\pc\controller\HomeController->communityList(...)
  3. ReflectionMethod->invokeArgs(...)
  4. rap\web\mvc\HandlerAdapter->invokeRequest(...)
  5. rap\web\mvc\ControllerHandlerAdapter->handle(...)
  6. rap\web\mvc\Dispatcher->doDispatch(...)
  7. rap\web\Application->start(...)
  8. require(...)