private function getRealData(Hospital $hospital, $hospitalName = '') {/*{{{*/ $res = array(); if ($hospitalName) { $hsName = $hospitalName; } else { $hsName = $hospital->name; } $res['key'] = $hsName; $res['url'] = $hospital->getUrl(); $res['title'] = XString::truncate($hsName.'科室列表_门诊时间表_专家推荐_好大夫在线', 58, '...'); $res['type'] = isset(self::$hospitalLevelList[$hospital->grade])?self::$hospitalLevelList[$hospital->grade]:''; $res['address'] = XString::truncate($hospital->address, 70, ''); $res['mapUrl'] = $hospital->getReMapUrl(); $res['tel'] = $this->getPhoneStr($hospital->phone); $res['zixunUrl'] = $hospital->getDoctorUrl(); $res['jiahaoUrl'] = $hospital->getJiaHaoUrl(); $res['doctorUrl'] = $hospital->getDiseaseUrl(); $res['keshiUrl'] = $hospital->getScheduleUrl(); $res['showUrl'] = 'www.haodf.com'; $res['infoUrl'] = $hospital->getInfoUrl(); $res['date'] = date('Y-m-d', time()); return $res; }/*}}}*/
private function getRealData(Hospital $hospital) {/*{{{*/ $hospitalList = array(); $isPlus = PlussignChannelClient::getInstance()->isHospitalBookDoctor($hospital->commonName); $res['url'] = $hospital->getUrl(); $res['name'] = $hospital->commonName; $res['address'] = ($hospital->address)?$hospital->address:"暂无"; $res['phone'] = ($hospital->address)?$hospital->phone:"暂无"; $res['pageSize'] = rand(60, 66).'K'; $res['date'] = date('Y-m-d', time()); $res['mapUrl'] = $hospital->getReMapUrl(); $res['scheduleUrl'] = $hospital->getScheduleUrl(); if($isPlus) { $res['extTitle'] = "预约加号"; $res['extUrl'] = 'http://jiahao.haodf.com/jiahao/search.htm?district='.urlencode($hospital->city).'&hospitalName='.urlencode($hospital->commonName); } else { $res['extTitle'] = "大夫文章"; $res['extUrl'] = $hospital->getArticleUrl(); } $res['doctorUrl'] = $hospital->getDoctorUrl(); $res['infoUrl'] = $hospital->getInfoUrl(); $hospitalList['item'] = $res + $this->getAlias($hospital); BeanFinder::get('LocalCache')->removeAll(); return $hospitalList; }/*}}}*/