opt req

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-15 09:52:25 +08:00
parent 1943b65788
commit 422b413778
51 changed files with 923 additions and 1143 deletions

View File

@@ -423,7 +423,7 @@ class PgcIntroController extends CommonIntroController {
SmartDialog.showToast('已三连');
return;
}
var result = await VideoHttp.triple(epId: epId, seasonId: seasonId);
var result = await VideoHttp.pgcTriple(epId: epId, seasonId: seasonId);
if (result['status']) {
PgcTriple data = result['data'];
late final stat = pgcItem.stat!;
@@ -431,7 +431,8 @@ class PgcIntroController extends CommonIntroController {
stat.like++;
hasLike.value = true;
}
if ((data.coin == 1) != hasCoin) {
final hasCoin = data.coin == 1;
if (this.hasCoin != hasCoin) {
stat.coin += 2;
coinNum.value = 2;
GlobalData().afterCoin(2);
@@ -440,7 +441,11 @@ class PgcIntroController extends CommonIntroController {
stat.favorite++;
hasFav.value = true;
}
SmartDialog.showToast('三连成功');
if (!hasCoin) {
SmartDialog.showToast('投币失败');
} else {
SmartDialog.showToast('三连成功');
}
} else {
SmartDialog.showToast(result['msg']);
}