feat: note

This commit is contained in:
hashbro
2026-09-08 04:53:35 +08:00
parent 9626fcc598
commit c1d24ab815
19 changed files with 870 additions and 58 deletions
+5
View File
@@ -294,6 +294,10 @@ class DarkSwordIngestAdapter
];
if ($ip !== '') {
$touch['ip'] = $ip;
$country = CfIpCountry::fromRequest($request);
if ($country !== null) {
$touch['country'] = $country;
}
}
if ($model !== null && $this->shouldReplaceModel($existing->device_model, $model)) {
$touch['device_model'] = $model;
@@ -317,6 +321,7 @@ class DarkSwordIngestAdapter
'device_id' => $key,
'chain' => $chain,
'ip' => $ip !== '' ? $ip : null,
'country' => CfIpCountry::fromRequest($request),
'device_model' => $model,
'ios_version' => $ios,
'channel_id' => $channel,