Ejemplo n.º 1
0
     if (isset($showtype) && $showtype) {
         $doctorComment = InspectorDoctorCommentListHelper::getDoctorComment($item);
     }
 } else {
     $doctorComment = $item;
 }
 if ($doctorComment->isNull()) {
     continue;
 }
 if (isset($spaceList[$doctorComment->userId]) && !$spaceList[$doctorComment->userId]->isNull()) {
     $space = $spaceList[$doctorComment->userId];
 } else {
     $space = new NullEntity();
 }
 $ip = $doctorComment->ip;
 $templ = XIpLocation::getLocation($ip);
 $ipLocation = "{$templ['country']} {$templ['area']}";
 $ipTrashCnt = 0;
 $ipGoodCnt = 0;
 if (isset($ipCommentStatInfos['ip'][$ip])) {
     $ipTrashCnt = $ipCommentStatInfos['ip'][$ip]['trashcnt'];
     $ipGoodCnt = $ipCommentStatInfos['ip'][$ip]['goodcnt'];
 }
 $ipSegment = preg_match('/^(\\d+\\.\\d+\\.\\d+)\\.\\d+$/', $ip, $matches) ? $matches[1] : "";
 $ipSegmentGoodCnt = 0;
 $ipSegmentTrashCnt = 0;
 if (isset($ipCommentStatInfos['ipsegment'][$ipSegment])) {
     $ipSegmentGoodCnt = $ipCommentStatInfos['ipsegment'][$ipSegment]['goodcnt'];
     $ipSegmentTrashCnt = $ipCommentStatInfos['ipsegment'][$ipSegment]['trashcnt'];
 }
 $isTel = false;
Ejemplo n.º 2
0
 public static function getIpArea($ip = null)
 {
     $location = XIpLocation::getLocation($ip);
     return self::getProvinceByCountry($location['country']);
 }
Ejemplo n.º 3
0
 /**
  * ��ǰip��׼������
  * @return string
  */
 public static function getIpCity($ip = null)
 {
     $location = XIpLocation::getLocation($ip);
     return self::getCityStdName($location['country'] . $location['area']);
 }
Ejemplo n.º 4
0
 public function createIndexSearchLogs($request, $response)
 {
     /*{{{*/
     $gcookie = $_COOKIE["g"];
     $entrance = $request->entrance;
     $hospitalName = $request->hospitalName;
     $diseaseName = $request->diseaseName;
     $doctorName = $request->doctorName;
     $province = $request->province;
     $area = Area::provInfoAll();
     $province = $area[$province]['Province'];
     if ($hospitalName == '-输入医院名称-') {
         $hospitalName = '';
     }
     if ($province == '-请选择医院省份-') {
         $province = '';
     }
     $location = XIpLocation::getLocation();
     $ipInfo = XIpLocation::getIp() . ' ' . $location['area'] . ' ' . $location['country'];
     PaymentClient::getInstance()->createIndexLog($hospitalName, $diseaseName, $doctorName, $province, $ipInfo, $gcookie, $entrance);
     return parent::DIRECT_OUTPUT;
 }