作者 刘锟

update

... ... @@ -353,7 +353,11 @@ public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRA
}
$data["device_port"] = $this->userAgentHandle($request->userAgent(), $data["device_port"] ?? self::DEVICE_PORT_ONE);
$req["data"] = $data;
$req["referer"] = $this->visitInfoHandle($data["referrer_url"] ?? $request->header('Referer'));
$referrer_url = $data["referrer_url"] ?? $request->header('Referer');
if($type == self::TYPEVISIT){
$referrer_url = $this->visitInfoHandle($referrer_url);
}
$req["referer"] = $referrer_url;
$req["domain"] = $request->getHost();
$req["ip"] = $request->getClientIp();
$req["user_agent"] = $request->userAgent();
... ...