Skip to content

Commit 93b6dc8

Browse files
committed
Update imageaudit.
1 parent 21bd4b7 commit 93b6dc8

8 files changed

+195
-187
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022-12-20 Version: 1.0.4
2+
- Update imageaudit.
3+
14
2022-12-16 Version: 1.6.8
25
- Release MergeVideoModelFace.
36

aliyun-net-sdk-imageaudit/Imageaudit/Model/V20191230/ScanImageRequest.cs

+11-12
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public ScanImageRequest()
4242

4343
private List<string> scenes = new List<string>(){ };
4444

45-
private List<Task> tasks = new List<Task>(){ };
45+
private List<string> tasks = new List<string>(){ };
4646

4747
public List<string> Scenes
4848
{
@@ -54,14 +54,10 @@ public List<string> Scenes
5454
set
5555
{
5656
scenes = value;
57-
for (int i = 0; i < scenes.Count; i++)
58-
{
59-
DictionaryUtil.Add(BodyParameters,"Scene." + (i + 1) , scenes[i]);
60-
}
6157
}
6258
}
6359

64-
public List<Task> Tasks
60+
public List<string> Tasks
6561
{
6662
get
6763
{
@@ -71,13 +67,16 @@ public List<Task> Tasks
7167
set
7268
{
7369
tasks = value;
74-
for (int i = 0; i < tasks.Count; i++)
70+
if(tasks != null)
7571
{
76-
DictionaryUtil.Add(BodyParameters,"Task." + (i + 1) + ".DataId", tasks[i].DataId);
77-
DictionaryUtil.Add(BodyParameters,"Task." + (i + 1) + ".ImageURL", tasks[i].ImageURL);
78-
DictionaryUtil.Add(BodyParameters,"Task." + (i + 1) + ".MaxFrames", tasks[i].MaxFrames);
79-
DictionaryUtil.Add(BodyParameters,"Task." + (i + 1) + ".Interval", tasks[i].Interval);
80-
DictionaryUtil.Add(BodyParameters,"Task." + (i + 1) + ".ImageTimeMillisecond", tasks[i].ImageTimeMillisecond);
72+
for (int depth1 = 0; depth1 < tasks.Count; depth1++)
73+
{
74+
DictionaryUtil.Add(BodyParameters,"Task." + (depth1 + 1), tasks[depth1]);
75+
DictionaryUtil.Add(BodyParameters,"Task." + (depth1 + 1), tasks[depth1]);
76+
DictionaryUtil.Add(BodyParameters,"Task." + (depth1 + 1), tasks[depth1]);
77+
DictionaryUtil.Add(BodyParameters,"Task." + (depth1 + 1), tasks[depth1]);
78+
DictionaryUtil.Add(BodyParameters,"Task." + (depth1 + 1), tasks[depth1]);
79+
}
8180
}
8281
}
8382
}

0 commit comments

Comments
 (0)