mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 相关视频补充报错信息
This commit is contained in:
@@ -277,7 +277,7 @@ class VideoHttp {
|
|||||||
}
|
}
|
||||||
return {'status': true, 'data': list};
|
return {'status': true, 'data': list};
|
||||||
} else {
|
} else {
|
||||||
return {'status': false, 'data': []};
|
return {'status': false, 'data': [], 'msg': res.data['message']};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:PiliPalaX/http/video.dart';
|
import 'package:PiliPalaX/http/video.dart';
|
||||||
import '../../../../models/model_hot_video_item.dart';
|
import '../../../../models/model_hot_video_item.dart';
|
||||||
@@ -15,6 +16,8 @@ class RelatedController extends GetxController {
|
|||||||
return VideoHttp.relatedVideoList(bvid: bvid).then((value) {
|
return VideoHttp.relatedVideoList(bvid: bvid).then((value) {
|
||||||
if (value['status']) {
|
if (value['status']) {
|
||||||
relatedVideoList.value = value['data'];
|
relatedVideoList.value = value['data'];
|
||||||
|
} else {
|
||||||
|
SmartDialog.showToast(value['msg']);
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user