mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -103,7 +103,7 @@ abstract class CommonIntroController extends GetxController
|
||||
if (!isShowOnlineTotal) {
|
||||
return;
|
||||
}
|
||||
var result = await VideoHttp.onlineTotal(
|
||||
final result = await VideoHttp.onlineTotal(
|
||||
aid: IdUtils.bv2av(bvid),
|
||||
bvid: bvid,
|
||||
cid: cid.value,
|
||||
@@ -124,7 +124,7 @@ abstract class CommonIntroController extends GetxController
|
||||
if (stat == null) {
|
||||
return;
|
||||
}
|
||||
var res = await VideoHttp.coinVideo(
|
||||
final res = await VideoHttp.coinVideo(
|
||||
bvid: bvid,
|
||||
multiply: coin,
|
||||
selectLike: selectLike ? 1 : 0,
|
||||
@@ -149,7 +149,7 @@ abstract class CommonIntroController extends GetxController
|
||||
}
|
||||
|
||||
Future<void> viewLater() async {
|
||||
var res = await (hasLater.value
|
||||
final res = await (hasLater.value
|
||||
? UserHttp.toViewDel(aids: IdUtils.bv2av(bvid).toString())
|
||||
: UserHttp.toViewLater(bvid: bvid));
|
||||
if (res['status']) hasLater.value = !hasLater.value;
|
||||
@@ -230,7 +230,7 @@ mixin FavMixin on TripleMixin {
|
||||
queryVideoInFolder().then((res) async {
|
||||
if (res.isSuccess) {
|
||||
final hasFav = this.hasFav.value;
|
||||
var result = hasFav
|
||||
final result = hasFav
|
||||
? await FavHttp.unfavAll(rid: rid, type: type)
|
||||
: await FavHttp.favVideo(
|
||||
resources: '$rid:$type',
|
||||
@@ -254,7 +254,7 @@ mixin FavMixin on TripleMixin {
|
||||
List<int?> addMediaIdsNew = [];
|
||||
List<int?> delMediaIdsNew = [];
|
||||
try {
|
||||
for (var i in favFolderData.value.list!) {
|
||||
for (final i in favFolderData.value.list!) {
|
||||
bool isFaved = favIds?.contains(i.id) == true;
|
||||
if (i.favState == 1) {
|
||||
if (!isFaved) {
|
||||
@@ -270,7 +270,7 @@ mixin FavMixin on TripleMixin {
|
||||
if (kDebugMode) debugPrint(e.toString());
|
||||
}
|
||||
SmartDialog.showLoading(msg: '请求中');
|
||||
var result = await FavHttp.favVideo(
|
||||
final result = await FavHttp.favVideo(
|
||||
resources: '$rid:$type',
|
||||
addIds: addMediaIdsNew.join(','),
|
||||
delIds: delMediaIdsNew.join(','),
|
||||
|
||||
Reference in New Issue
Block a user