diff --git a/lib/retrofit/min_api.dart b/lib/retrofit/min_api.dart index 428fccb5..190ce653 100644 --- a/lib/retrofit/min_api.dart +++ b/lib/retrofit/min_api.dart @@ -31,21 +31,17 @@ abstract class MinApiService { String baseUrl, BuildContext context, String token, - String tenant, bool showLoading = true, bool pay = false, }) { Map headers = (token == null || token == "") ? {} : {'token': "Bearer $token"}; - if (tenant != null && tenant != "") { - headers["tenant"] = tenant; - } if (pay) { headers["Environment"] = "app"; } dio.options = BaseOptions( - connectTimeout: 10000, - receiveTimeout: 10000, + connectTimeout: 60000, + receiveTimeout: 60000, headers: headers, responseType: ResponseType.json, ); diff --git a/lib/store/store_order.dart b/lib/store/store_order.dart index 3d895104..e5f35cb0 100644 --- a/lib/store/store_order.dart +++ b/lib/store/store_order.dart @@ -8,7 +8,6 @@ import 'package:huixiang/retrofit/data/activity.dart'; import 'package:huixiang/retrofit/data/base_data.dart'; import 'package:huixiang/retrofit/data/order_info.dart'; import 'package:huixiang/retrofit/data/store_info.dart'; -import 'package:huixiang/retrofit/data/user_entity.dart'; import 'package:huixiang/retrofit/min_api.dart'; import 'package:huixiang/retrofit/retrofit_api.dart'; import 'package:huixiang/store/store_view/store_activity.dart'; @@ -18,7 +17,6 @@ import 'package:huixiang/union/union_view/union_coupon.dart'; import 'package:huixiang/union/union_view/vip.dart'; import 'package:huixiang/utils/font_weight.dart'; import 'package:huixiang/view_widget/classic_header.dart'; -import 'package:huixiang/view_widget/custom_image.dart'; import 'package:huixiang/view_widget/my_tab.dart'; import 'package:huixiang/view_widget/round_button.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart'; diff --git a/lib/store/store_view/store_order_list.dart b/lib/store/store_view/store_order_list.dart index f840ab98..af929898 100644 --- a/lib/store/store_view/store_order_list.dart +++ b/lib/store/store_view/store_order_list.dart @@ -90,7 +90,7 @@ class _StoreOrderListPage extends State { Dio(), context: context, token: minToken, - tenant: tenant, + // tenant: tenant, ); appletGoods(); }