From f88e9a66218739a51603212764cbf2d9a6c59868 Mon Sep 17 00:00:00 2001 From: orz12 Date: Sat, 17 Feb 2024 13:26:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=B9=E5=B9=95=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/http/danmaku.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/http/danmaku.dart b/lib/http/danmaku.dart index 0b108755..bb38d43c 100644 --- a/lib/http/danmaku.dart +++ b/lib/http/danmaku.dart @@ -19,6 +19,9 @@ class DanmakaHttp { data: params, extra: {'resType': ResponseType.bytes}, ); + if (response.statusCode != 200 || response.data == null) { + return DmSegMobileReply(); + } return DmSegMobileReply.fromBuffer(response.data); }