mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 02:58:55 +03:30
Fix test input api
This commit is contained in:
@@ -12,9 +12,13 @@ class Inputs with ChangeNotifier {
|
||||
Future<bool> getInputs({
|
||||
required String testResultId,
|
||||
required String testTypeId,
|
||||
required bool isId,
|
||||
}) async {
|
||||
var url = isId == true
|
||||
? "${Url.getInputs}/$testTypeId"
|
||||
: "${Url.getInputs}/$testTypeId?by=code";
|
||||
var response = await http.get(
|
||||
Uri.parse("${Url.getInputs}/$testTypeId"),
|
||||
Uri.parse(url),
|
||||
headers: {
|
||||
'Authorization': User.token,
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
|
||||
@@ -16,12 +16,14 @@ class TestResultsProvider with ChangeNotifier {
|
||||
List<PlatformFile> catchImages = [];
|
||||
List<Uint8List> images = [];
|
||||
String testTypeId = '';
|
||||
bool isFromTestID = true;
|
||||
String testCode = '';
|
||||
List<Map<String, String>> testTypeMap = [];
|
||||
|
||||
resetTests() {
|
||||
testCode = '';
|
||||
testTypeId = '';
|
||||
isFromTestID = true;
|
||||
}
|
||||
|
||||
setImages() async {
|
||||
|
||||
Reference in New Issue
Block a user