chagen
This commit is contained in:
@@ -127,8 +127,8 @@ function browser_quick_test_handle_request(): array
|
|||||||
:manufacturer,
|
:manufacturer,
|
||||||
:model_name,
|
:model_name,
|
||||||
:usb_type,
|
:usb_type,
|
||||||
:adv_capacity,
|
:advertised_capacity_bytes,
|
||||||
:measured_capacity,
|
:measured_capacity_bytes,
|
||||||
:capacity_status,
|
:capacity_status,
|
||||||
:filesystem,
|
:filesystem,
|
||||||
:test_report_json,
|
:test_report_json,
|
||||||
@@ -142,7 +142,7 @@ function browser_quick_test_handle_request(): array
|
|||||||
$stmt->execute([
|
$stmt->execute([
|
||||||
'user_id' => $userId,
|
'user_id' => $userId,
|
||||||
'is_logged_in' => $isLoggedIn,
|
'is_logged_in' => $isLoggedIn,
|
||||||
'usb_device_id' => null, // Browser-Test ist erstmal nicht an gespeicherten Stick gekoppelt
|
'usb_device_id' => null,
|
||||||
'browser_name' => $browserName,
|
'browser_name' => $browserName,
|
||||||
'browser_version' => $browserVersion,
|
'browser_version' => $browserVersion,
|
||||||
'os_name' => $osName,
|
'os_name' => $osName,
|
||||||
@@ -151,16 +151,16 @@ function browser_quick_test_handle_request(): array
|
|||||||
'manufacturer' => $manufacturer,
|
'manufacturer' => $manufacturer,
|
||||||
'model_name' => $modelName,
|
'model_name' => $modelName,
|
||||||
'usb_type' => $usbType,
|
'usb_type' => $usbType,
|
||||||
'adv_capacity' => $advCapacityBytes,
|
'advertised_capacity_bytes' => $advCapacityBytes,
|
||||||
'measured_capacity' => $measuredBytes ?: null,
|
'measured_capacity_bytes' => $measuredBytes ?: null,
|
||||||
'capacity_status' => $capacityStatus,
|
'capacity_status' => $capacityStatus,
|
||||||
'filesystem' => $filesystem,
|
'filesystem' => $filesystem,
|
||||||
// WICHTIG: KEIN CAST(... AS JSON) → kompatibel mit TEXT / LONGTEXT
|
|
||||||
'test_report_json' => $testReportJson,
|
'test_report_json' => $testReportJson,
|
||||||
'ip_address' => $ipAddress,
|
'ip_address' => $ipAddress,
|
||||||
'session_id' => $sessionId,
|
'session_id' => $sessionId,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
$id = (int)$pdo->lastInsertId();
|
$id = (int)$pdo->lastInsertId();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user