{{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. if(!empty($community_id)){
  16. $community_name = House::get($community_id)->name;
  17. $selectTags[] = ['title'=>'小区:'.$community_name];
  18. }
  19. $tagsData = ['sjTag' => $sjTag, 'mjTag' => $mjTag,'hxTag' => $hxTag, 'tsTag' => $tsTag, 'zzTag' => $zzTag, 'flTag' => $flTag,
  20. 'cxTag' => $cxTag, 'zxTag' => $zxTag, 'source'=>$source,'areasTag' => $areas, 'areasChildTag' => $areasChildTag];
  21. return ['tagsData' => $tagsData, 'selectTags' => $selectTags];
  22. }
  23. /**
  24. * 用户当前已选择的筛选标签
  25. * @param $tag
  26. * @param $value
  27. * @param $key
  28. * @return array
  29. */
  30. public function getSecondHandListSelectTag($tag, $value, $key){
  31. $selectTag = [];
  32. if ($key != 'wz') {
  33. $content = $tag['content'];
  34. } else {
  35. $content = $tag;
  36. }
  37. foreach ($content as $item) {
  38. if ($item['id'] == $value) {
trace调用栈
    
  1. app\resold\service\HouseService->getSecondHandListTag(...)
  2. app\house\pc\controller\HomeController->secondHandQueryRegion(...)
  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(...)