informUploadToServer static method
dynamic
informUploadToServer(
- ScanModel element
)
Implementation
static informUploadToServer(ScanModel element) async {
//继续上传,已上传一个,调用通知后台计算接口
Map modelParam = jsonDecode(element.params!);
String userId = await UnitsDataTool.getValue(USER_ID, "");
List<dynamic> measureModes = modelParam["measureModes"];
Map<String, dynamic> notificationParameter = {
"userId": userId,
"measureModes": measureModes,
"taskId": element.taskId,
"fileUrl": modelParam["ossPath"]!,
"actualOrder": element.actualOrder
};
UnitsForNetwork.postHttp(element.apiUrl!,
parameters: notificationParameter);
}