This commit is contained in:
2026-09-01 17:58:09 +08:00
parent 046ce2f1ab
commit 33d9bb1696
5 changed files with 18 additions and 10 deletions
+3 -3
View File
@@ -97,7 +97,7 @@ class OrderApi {
res = await _client.get(
Uri.parse('$baseUrl/api/v1/plans'),
headers: {'Accept': 'application/json', ...await _authHeaders()},
).timeout(const Duration(seconds: 15));
).timeout(const Duration(seconds: 30));
} catch (e) {
if (e is OrderApiException) rethrow;
throw OrderApiException('网络请求失败: $e');
@@ -115,7 +115,7 @@ class OrderApi {
res = await _client.get(
Uri.parse('$baseUrl/api/v1/license'),
headers: {'Accept': 'application/json', ...await _authHeaders()},
).timeout(const Duration(seconds: 15));
).timeout(const Duration(seconds: 30));
} catch (e) {
if (e is OrderApiException) rethrow;
throw OrderApiException('网络请求失败: $e');
@@ -136,7 +136,7 @@ class OrderApi {
},
body: body,
)
.timeout(const Duration(seconds: 15));
.timeout(const Duration(seconds: 30));
} catch (e) {
if (e is OrderApiException) rethrow;
throw OrderApiException('网络请求失败: $e');