opt: notify-debugger-on-exception (#1750)

This commit is contained in:
My-Responsitories
2025-11-17 21:49:36 +08:00
committed by GitHub
parent 76c2de4394
commit 0f8166620e
14 changed files with 37 additions and 74 deletions

View File

@@ -25,7 +25,6 @@ import 'package:PiliPlus/utils/accounts/account.dart';
import 'package:PiliPlus/utils/app_sign.dart';
import 'package:PiliPlus/utils/wbi_sign.dart';
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart' show kDebugMode;
abstract final class LiveHttp {
static Account get recommend => Accounts.get(AccountType.recommend);
@@ -620,8 +619,9 @@ abstract final class LiveHttp {
}
}
@pragma('vm:notify-debugger-on-exception')
static Future<LoadingState<SuperChatData>> superChatMsg(
dynamic roomId,
Object roomId,
) async {
var res = await Request().get(
Api.superChatMsg,
@@ -633,9 +633,6 @@ abstract final class LiveHttp {
try {
return Success(SuperChatData.fromJson(res.data['data']));
} catch (e, s) {
if (kDebugMode) {
rethrow;
}
return Error('$e\n\n$s');
}
} else {