mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
opt: notify-debugger-on-exception (#1750)
This commit is contained in:
committed by
GitHub
parent
76c2de4394
commit
0f8166620e
@@ -34,7 +34,7 @@ import 'package:PiliPlus/utils/recommend_filter.dart';
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
import 'package:PiliPlus/utils/wbi_sign.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter/foundation.dart' show kDebugMode, compute;
|
||||
import 'package:flutter/foundation.dart' show compute;
|
||||
|
||||
/// view层根据 status 判断渲染逻辑
|
||||
class VideoHttp {
|
||||
@@ -188,6 +188,7 @@ class VideoHttp {
|
||||
}
|
||||
|
||||
// 视频流
|
||||
@pragma('vm:notify-debugger-on-exception')
|
||||
static Future<LoadingState<PlayUrlModel>> videoUrl({
|
||||
int? avid,
|
||||
String? bvid,
|
||||
@@ -259,9 +260,6 @@ class VideoHttp {
|
||||
}
|
||||
return Error(_parseVideoErr(res.data['code'], res.data['message']));
|
||||
} catch (e, s) {
|
||||
if (kDebugMode) {
|
||||
rethrow;
|
||||
}
|
||||
return Error('$e\n\n$s');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user