Ejemplo n.º 1
0
 /**
  * 获取房源点击效果(包括花费 和 点击量)
  * @return array|bool|string
  */
 public function do_getPropEffect()
 {
     $days = isset($this->params['days']) ? (int) $this->params['days'] : 7;
     $result = Bll_House_HzHouse::getPropEffect($this->params['proId'], $this->cityId, $days);
     $this->outPut($result ? 1 : 0, $result ? $result : 'no data');
 }
Ejemplo n.º 2
0
 private static function prepareEffect(&$out)
 {
     $data = Bll_House_HzHouse::getPropEffect($out['proId'], $out['cityId']);
     if (!Bll_Broker_HzBroker::isComboBroker($out['ajkBrokerId'])) {
         return $data;
     }
     // 把套餐的统计信息拼接上去
     $comboData = self::getHouseComboSpreadClickInfo($out['proId']);
     foreach ($data as $k => $v) {
         if (!$comboData || !isset($comboData[$k])) {
             $data[$k]['totalComboClick'] = 0;
             continue;
         }
         $data[$k]['totalComboClick'] = $comboData[$k]['totalComboClick'];
     }
     return $data;
 }