mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
api pieces-hash keeps return map
This commit is contained in:
@@ -154,7 +154,7 @@ class TorrentController extends Controller
|
||||
'pieces_hash' => 'required|array',
|
||||
]);
|
||||
$result = $this->repository->getPiecesHashCache($request->pieces_hash);
|
||||
return $this->success($result);
|
||||
return $this->success($result ?: (object)[]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user