111
This commit is contained in:
1 parent
7c20242ad7
commit
382b8d660f
8 files changed
+802
-21
No files matched your search
@@ -231,15 +231,37 @@ abstract class HardApi {
|
||||
required TerminalOrderRecordQueryRequest request,
|
||||
}) async {
|
||||
final res = await HttpManage().dio.post(
|
||||
'/hard/hard-api/ad/order-record/page',
|
||||
queryParameters: {'current': current, 'size': size},
|
||||
data: request.toJson(),
|
||||
options: dio.Options(headers: {'DEVICE-ID': '${request.hardId}'}),
|
||||
);
|
||||
'/hard/hard-api/ad/order-record/page',
|
||||
queryParameters: {'current': current, 'size': size},
|
||||
data: request.toJson(),
|
||||
options: dio.Options(headers: {'DEVICE-ID': '${request.hardId}'}),
|
||||
);
|
||||
if (res.data == null) return null;
|
||||
return ServiceTerminalOrderRecordPage.fromJson(res.data);
|
||||
}
|
||||
|
||||
/// 超时后按原本地订单号读取已提交结果;新接口失败时不得自动重新发起支付。
|
||||
static Future<ServiceOrderByAndroidCode?> getOrderByAndroidCode({
|
||||
required String hardId,
|
||||
required String androidOrderCode,
|
||||
}) async {
|
||||
final res = await HttpManage().dio.get(
|
||||
'/hard/hard-api/ad/get-order-by-android-code',
|
||||
queryParameters: {
|
||||
'hardId': hardId,
|
||||
'androidOrderCode': androidOrderCode,
|
||||
},
|
||||
options: dio.Options(
|
||||
headers: {'DEVICE-ID': hardId},
|
||||
extra: {HttpManage.silentRequestKey: true},
|
||||
),
|
||||
);
|
||||
if (res.data == null) return null;
|
||||
return ServiceOrderByAndroidCode.fromJson(
|
||||
Map<String, dynamic>.from(res.data as Map),
|
||||
);
|
||||
}
|
||||
|
||||
/// 创建硬件订单
|
||||
static Future<String?> createHardwareOrder(dynamic formData) async {
|
||||
final res = await HttpManage().dio.post(
|
||||
|
||||
Reference in new issue
Block a user