mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-28 22:40:13 +08:00
@@ -1049,7 +1049,7 @@ class VideoDetailController extends GetxController
|
||||
Future<void> getSteinEdgeInfo([int? edgeId]) async {
|
||||
steinEdgeInfo = null;
|
||||
try {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
'/x/stein/edgeinfo_v2',
|
||||
queryParameters: {
|
||||
'bvid': bvid,
|
||||
|
||||
@@ -126,7 +126,7 @@ class PgcIntroController extends CommonIntroController {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GlobalData().coins != null && GlobalData().coins! < 1) {
|
||||
if (GlobalData.coins != null && GlobalData.coins! < 1) {
|
||||
SmartDialog.showToast('硬币不足');
|
||||
// return;
|
||||
}
|
||||
@@ -435,7 +435,7 @@ class PgcIntroController extends CommonIntroController {
|
||||
if (response.coin == 1 && !hasCoin) {
|
||||
stat?.coin += 2;
|
||||
coinNum.value = 2;
|
||||
GlobalData().afterCoin(2);
|
||||
GlobalData.afterCoin(2);
|
||||
}
|
||||
if (response.favorite == 1 && !hasFav.value) {
|
||||
stat?.favorite++;
|
||||
|
||||
@@ -132,7 +132,7 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
// 获取up主粉丝数
|
||||
Future<void> queryUserStat(List<Staff>? staff) async {
|
||||
if (staff != null && staff.isNotEmpty) {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.relations,
|
||||
queryParameters: {'fids': staff.map((item) => item.mid).join(',')},
|
||||
);
|
||||
@@ -190,7 +190,7 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
if (response.coin == true && !hasCoin) {
|
||||
stat?.coin += 2;
|
||||
coinNum.value = 2;
|
||||
GlobalData().afterCoin(2);
|
||||
GlobalData.afterCoin(2);
|
||||
}
|
||||
if (response.fav == true && !hasFav.value) {
|
||||
stat?.favorite++;
|
||||
@@ -271,7 +271,7 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GlobalData().coins != null && GlobalData().coins! < 1) {
|
||||
if (GlobalData.coins != null && GlobalData.coins! < 1) {
|
||||
SmartDialog.showToast('硬币不足');
|
||||
// return;
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ class _PayCoinsPageState extends State<PayCoinsPage>
|
||||
_timer = null;
|
||||
}
|
||||
|
||||
final num? _coins = GlobalData().coins;
|
||||
final num? _coins = GlobalData.coins;
|
||||
|
||||
bool _canPay(int index) {
|
||||
if (index == 1 && widget.hasCoin) {
|
||||
|
||||
Reference in New Issue
Block a user