Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-13 16:56:09 +08:00
parent 9f6ef0281a
commit e1473a453e
2 changed files with 15 additions and 6 deletions

View File

@@ -310,9 +310,18 @@ class AudioController extends GetxController
itemType: itemType,
);
if (res.isSuccess) {
final data = res.data;
hasLike.value = true;
coinNum.value = 2;
if (data.coinOk && !hasCoin) {
coinNum.value = 2;
GlobalData().afterCoin(2);
}
hasFav.value = true;
if (!hasCoin) {
SmartDialog.showToast('投币失败');
} else {
SmartDialog.showToast('三连成功');
}
} else {
res.toast();
}