mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-27 04:26:58 +08:00
opt dyn panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -52,9 +52,9 @@ class RetryInterceptor extends Interceptor {
|
||||
case DioExceptionType.sendTimeout:
|
||||
case DioExceptionType.unknown:
|
||||
if ((err.requestOptions.extra['_rt'] ??= 0) < _count &&
|
||||
err.error
|
||||
is! TransportConnectionException // 网络中断, 此时请求可能已经被服务器所接收
|
||||
) {
|
||||
err.error
|
||||
is! TransportConnectionException // 网络中断, 此时请求可能已经被服务器所接收
|
||||
) {
|
||||
Future.delayed(
|
||||
Duration(
|
||||
milliseconds: ++err.requestOptions.extra['_rt'] * _delay,
|
||||
|
||||
Reference in New Issue
Block a user