mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 弹幕响应检查
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user