opt: video pic showing

This commit is contained in:
bggRGjQaUbCoE
2024-09-03 18:05:42 +08:00
parent e4d97ace6a
commit f576e17b79
6 changed files with 56 additions and 31 deletions

View File

@@ -245,7 +245,11 @@ class VideoHttp {
var res = await Request().get(Api.videoIntro, data: {'bvid': bvid});
VideoDetailResponse result = VideoDetailResponse.fromJson(res.data);
if (result.code == 0) {
return {'status': true, 'data': result.data!};
return {
'status': true,
'data': result.data!,
'pic': result.data?.pic ?? '',
};
} else {
// Map errMap = {
// -400: '请求错误',