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; }/*}}}*/
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, $hospitalName = '') {/*{{{*/ $res = array(); if ($hospitalName) { $hsName = $hospitalName; } else { $hsName = $hospital->name; } $hospitals['item']['key'] = $hsName; $hospitals['item']['title'] = XString::truncate($hospital->commonName.'科室列表_门诊时间表_专家推荐_好大夫在线',59,''); $hospitals['item']['level'] = $hospital->getGradeStr();// $hospitals['item']['url'] = $hospital->getUrl(); $hospitals['item']['address'] = strip_tags($hospital->address); $hospitals['item']['address_url'] = $hospital->getReMapUrl(); $hospitals['item']['description'] = strip_tags($hospital->intro); $hospitals['item']['description_url'] = $hospital->getInfoUrl(); $hospitals['item']['luxian'] = $hospital->addressinfo; $hospitals['item']['telephone'] = $hospital->phone; $hospitals['item']['online_doctors'] = $hospital->spaceCount; $hospitals['item']['online_doctors_url'] = $hospital->getDoctorUrl(); $hospitals['item']['tel_doctors'] = HospitalClient::getInstance()->getHospitalDirectCallCount($hospital->id); $hospitals['item']['tel_doctors_url'] = $hospital->getTelDoctorUrl(); $hospitals['item']['showurl'] = 'www.haodf.com/'; $res[] = $hospitals; BeanFinder::get('LocalCache')->removeAll(); return $res; }/*}}}*/