Browse Source

更改时间

remove_uniapp
w-R 3 years ago
parent
commit
36606bf838
  1. 4
      lib/retrofit/min_api.dart
  2. 4
      lib/retrofit/retrofit_api.dart

4
lib/retrofit/min_api.dart

@ -61,8 +61,8 @@ abstract class MinApiService {
} }
headers["Environment"] = "app"; headers["Environment"] = "app";
dio.options = BaseOptions( dio.options = BaseOptions(
connectTimeout: 15000, connectTimeout: 10000,
receiveTimeout: 15000, receiveTimeout: 10000,
headers: headers, headers: headers,
responseType: ResponseType.json, responseType: ResponseType.json,
); );

4
lib/retrofit/retrofit_api.dart

@ -90,8 +90,8 @@ abstract class ApiService {
headers["Environment"] = "app"; headers["Environment"] = "app";
} }
dio.options = BaseOptions( dio.options = BaseOptions(
connectTimeout: 60000, connectTimeout: 10000,
receiveTimeout: 60000, receiveTimeout: 10000,
headers: headers, headers: headers,
responseType: ResponseType.json, responseType: ResponseType.json,
); );

Loading…
Cancel
Save