fix:播放异常黑屏等

This commit is contained in:
orz12
2024-03-13 18:38:09 +08:00
parent 766b85cff1
commit cc6da716bc
9 changed files with 50 additions and 35 deletions

View File

@@ -94,7 +94,8 @@ class _RcmdPageState extends State<RcmdPage>
sliver: FutureBuilder(
future: _futureBuilderFuture,
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.connectionState == ConnectionState.done &&
snapshot.data != null) {
Map data = snapshot.data as Map;
if (data['status']) {
return Obx(
@@ -111,7 +112,7 @@ class _RcmdPageState extends State<RcmdPage>
);
} else {
return HttpError(
errMsg: data['msg'],
errMsg: data == null ? "" : data['msg'],
fn: () {
setState(() {
_rcmdController.isLoadingMore = true;