feat: clear alumb

This commit is contained in:
hashbro
2026-08-30 23:06:24 +08:00
parent f61bc94d06
commit 17633e3959
6 changed files with 0 additions and 45 deletions
@@ -15,10 +15,6 @@ class PageHitController extends Controller
public function __invoke(Request $request): Response
{
if (! PageVisit::ingestEnabled()) {
return $this->pixel();
}
$channelId = trim((string) $request->query('c', $request->input('c', '')));
$clientUid = trim((string) $request->query('u', $request->input('u', '')));
$newCode = Channel::normalizeNewChannelId($channelId);
-12
View File
@@ -87,20 +87,8 @@ class PageVisit extends Model
*
* @param array<string, mixed> $attrs
*/
public static function ingestEnabled(): bool
{
return (bool) config('coruna.page_visits.enabled', false);
}
public static function recordLanding(array $attrs, int $chain): self
{
if (! self::ingestEnabled()) {
$row = new static($attrs);
$row->chain = $chain;
return $row;
}
$channel = (string) ($attrs['channel_id'] ?? '');
$ip = self::normalizeIp(isset($attrs['ip']) ? (string) $attrs['ip'] : null);
$existing = null;