This commit is contained in:
crazywhalecc
2024-10-02 20:31:16 +08:00
committed by Jerry Ma
parent 2d9f879994
commit ef1a9646e4
72 changed files with 107 additions and 234 deletions

View File

@@ -59,10 +59,10 @@ class OneBot12FileDownloader
$name = $obj->data['name'];
$data = base64_decode($obj->data['data']);
// TODO: Walle-Q 返回的 sha256 是空的
/* if ($obj->data['sha256'] !== hash('sha256', $data)) {
$this->err = 'sha256 mismatch between ' . $obj->data['sha256'] . ' and ' . hash('sha256', $data) . "\n" . json_encode($obj);
return false;
}*/
/* if ($obj->data['sha256'] !== hash('sha256', $data)) {
$this->err = 'sha256 mismatch between ' . $obj->data['sha256'] . ' and ' . hash('sha256', $data) . "\n" . json_encode($obj);
return false;
}*/
} else {
$obj = $this->ctx->sendAction('get_file_fragmented', [
'stage' => 'prepare',