@@ -1212,6 +1212,7 @@ https://github.com/Tencent/APIJSON/issues
1212
1212
allowMultiple: true,
1213
1213
isFullScreen: false,
1214
1214
hoverIds: { before: null, diff: null, after: null },
1215
+ sameRandomIds: [],
1215
1216
compareRandomIds: null, // [],
1216
1217
detection: {
1217
1218
isShowNum: false,
@@ -6794,7 +6795,7 @@ https://github.com/Tencent/APIJSON/issues
6794
6795
Random: {
6795
6796
id: -(index || 0) - 1, //表示未上传
6796
6797
toId: random.id,
6797
- userId: random.userId || doc.userId,
6798
+ // userId: random.userId || doc.userId,
6798
6799
documentId: random.documentId || doc.id,
6799
6800
count: 1,
6800
6801
name: '分析位于 ' + index + ' 的这张图片',
@@ -7122,6 +7123,10 @@ https://github.com/Tencent/APIJSON/issues
7122
7123
detection.beforeAllF1Str = (100*allF1).toFixed(0);
7123
7124
7124
7125
this.detection = detection;
7126
+ var compareRandomIds = this.compareRandomIds;
7127
+ if (compareRandomIds instanceof Array) {
7128
+ compareRandomIds = [...new Set([...compareRandomIds, ...this.sameRandomIds])];
7129
+ }
7125
7130
7126
7131
this.adminRequest('/get', {
7127
7132
"TestRecord[]": {
@@ -7135,7 +7140,7 @@ https://github.com/Tencent/APIJSON/issues
7135
7140
"total>=": 0,
7136
7141
"wrong>=": 0,
7137
7142
"correct>=": 0,
7138
- 'randomId{}': this. compareRandomIds,
7143
+ 'randomId{}': compareRandomIds,
7139
7144
// "@explain": true
7140
7145
}
7141
7146
}
@@ -11908,6 +11913,13 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
11908
11913
default:
11909
11914
it.compareColor = 'white'
11910
11915
it.hintMessage = '结果正确'
11916
+ if (isRandom && tr.randomId != null) {
11917
+ var sameRandomIds = this.sameRandomIds || [];
11918
+ if (! compareRandomIds.includes(tr.randomId)) {
11919
+ sameRandomIds.push(tr.randomId);
11920
+ this.sameRandomIds = sameRandomIds;
11921
+ }
11922
+ }
11911
11923
break;
11912
11924
}
11913
11925
0 commit comments