|
|
|
@ -2974,13 +2974,13 @@ class _ApiService implements ApiService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Future<BaseData<dynamic>> rankBuy(Map<String, dynamic> param) async { |
|
|
|
|
Future<BaseData<WxPay>> rankBuy(Map<String, dynamic> param) async { |
|
|
|
|
final _extra = <String, dynamic>{}; |
|
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
|
final _headers = <String, dynamic>{}; |
|
|
|
|
final _data = <String, dynamic>{}; |
|
|
|
|
_data.addAll(param); |
|
|
|
|
final _options = _setStreamType<BaseData<dynamic>>(Options( |
|
|
|
|
final _options = _setStreamType<BaseData<WxPay>>(Options( |
|
|
|
|
method: 'POST', |
|
|
|
|
headers: _headers, |
|
|
|
|
extra: _extra, |
|
|
|
@ -2997,11 +2997,11 @@ class _ApiService implements ApiService {
|
|
|
|
|
baseUrl, |
|
|
|
|
))); |
|
|
|
|
final _result = await _dio.fetch<Map<String, dynamic>>(_options); |
|
|
|
|
late BaseData<dynamic> _value; |
|
|
|
|
late BaseData<WxPay> _value; |
|
|
|
|
try { |
|
|
|
|
_value = BaseData<dynamic>.fromJson( |
|
|
|
|
_value = BaseData<WxPay>.fromJson( |
|
|
|
|
_result.data!, |
|
|
|
|
(json) => json as dynamic, |
|
|
|
|
(json) => WxPay.fromJson(json as Map<String, dynamic>), |
|
|
|
|
); |
|
|
|
|
} on Object catch (e, s) { |
|
|
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|