chagen
This commit is contained in:
@@ -94,7 +94,7 @@ function browser_quick_test_handle_request(): array
|
||||
global $pdo;
|
||||
|
||||
try {
|
||||
$sql = "
|
||||
$sql = "
|
||||
INSERT INTO web_quicktests (
|
||||
user_id,
|
||||
is_logged_in,
|
||||
@@ -127,22 +127,22 @@ function browser_quick_test_handle_request(): array
|
||||
:manufacturer,
|
||||
:model_name,
|
||||
:usb_type,
|
||||
:adv_capacity,
|
||||
:measured_capacity,
|
||||
:advertised_capacity_bytes,
|
||||
:measured_capacity_bytes,
|
||||
:capacity_status,
|
||||
:filesystem,
|
||||
:test_report_json,
|
||||
:ip_address,
|
||||
:session_id
|
||||
)
|
||||
";
|
||||
";
|
||||
|
||||
$stmt = $pdo->prepare($sql);
|
||||
$stmt = $pdo->prepare($sql);
|
||||
|
||||
$stmt->execute([
|
||||
$stmt->execute([
|
||||
'user_id' => $userId,
|
||||
'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_version' => $browserVersion,
|
||||
'os_name' => $osName,
|
||||
@@ -151,15 +151,15 @@ function browser_quick_test_handle_request(): array
|
||||
'manufacturer' => $manufacturer,
|
||||
'model_name' => $modelName,
|
||||
'usb_type' => $usbType,
|
||||
'adv_capacity' => $advCapacityBytes,
|
||||
'measured_capacity' => $measuredBytes ?: null,
|
||||
'advertised_capacity_bytes' => $advCapacityBytes,
|
||||
'measured_capacity_bytes' => $measuredBytes ?: null,
|
||||
'capacity_status' => $capacityStatus,
|
||||
'filesystem' => $filesystem,
|
||||
// WICHTIG: KEIN CAST(... AS JSON) → kompatibel mit TEXT / LONGTEXT
|
||||
'test_report_json' => $testReportJson,
|
||||
'ip_address' => $ipAddress,
|
||||
'session_id' => $sessionId,
|
||||
]);
|
||||
]);
|
||||
|
||||
|
||||
$id = (int)$pdo->lastInsertId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user