|
|
@ -9,7 +9,7 @@ part of 'min_api.dart'; |
|
|
|
class _MinApiService implements MinApiService { |
|
|
|
class _MinApiService implements MinApiService { |
|
|
|
_MinApiService(this._dio, {this.baseUrl}) { |
|
|
|
_MinApiService(this._dio, {this.baseUrl}) { |
|
|
|
ArgumentError.checkNotNull(_dio, '_dio'); |
|
|
|
ArgumentError.checkNotNull(_dio, '_dio'); |
|
|
|
baseUrl ??= 'https://pos.api.lotus-wallet.com/app/'; |
|
|
|
baseUrl ??= 'http://192.168.10.104:8765/app/'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
final Dio _dio; |
|
|
|
final Dio _dio; |
|
|
@ -269,7 +269,7 @@ class _MinApiService implements MinApiService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future<BaseData<DownOrder>> placeOrderFirst(param) async { |
|
|
|
Future<BaseData<dynamic>> placeOrderFirst(param) async { |
|
|
|
ArgumentError.checkNotNull(param, 'param'); |
|
|
|
ArgumentError.checkNotNull(param, 'param'); |
|
|
|
const _extra = <String, dynamic>{}; |
|
|
|
const _extra = <String, dynamic>{}; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
@ -284,9 +284,9 @@ class _MinApiService implements MinApiService { |
|
|
|
extra: _extra, |
|
|
|
extra: _extra, |
|
|
|
baseUrl: baseUrl), |
|
|
|
baseUrl: baseUrl), |
|
|
|
data: _data); |
|
|
|
data: _data); |
|
|
|
final value = BaseData<DownOrder>.fromJson( |
|
|
|
final value = BaseData<dynamic>.fromJson( |
|
|
|
_result.data, |
|
|
|
_result.data, |
|
|
|
(json) => DownOrder.fromJson(json), |
|
|
|
(json) => json, |
|
|
|
); |
|
|
|
); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|