@@ -2700,6 +2700,7 @@ https://github.com/Tencent/APIJSON/issues
2700
2700
vUrl.value = item.host + bu
2701
2701
this.showUrl(false, bu)
2702
2702
2703
+ this.saveCache('', 'URL_BASE', baseUrl)
2703
2704
this.saveCache('', 'projectHost', this.projectHost)
2704
2705
},
2705
2706
@@ -3136,7 +3137,6 @@ https://github.com/Tencent/APIJSON/issues
3136
3137
commentObj = JSONResponse.updateStandard({}, mapReq2);
3137
3138
}
3138
3139
3139
-
3140
3140
var callback = function (randomName, constConfig, constJson) {
3141
3141
// 用现成的测试过的更好,Response 与 Request 严格对应
3142
3142
// var mapReq = {};
@@ -3169,6 +3169,7 @@ https://github.com/Tencent/APIJSON/issues
3169
3169
// commentObj = JSONResponse.updateStandard({}, mapReq2);
3170
3170
// }
3171
3171
3172
+ const userId = App.User.id;
3172
3173
const methods = App.methods;
3173
3174
const method = App.isShowMethod() ? App.method : null;
3174
3175
const extName = App.exTxt.name;
@@ -3178,6 +3179,7 @@ https://github.com/Tencent/APIJSON/issues
3178
3179
const req = isExportRandom && btnIndex <= 0 ? {
3179
3180
format: false,
3180
3181
'Random': {
3182
+ userId: userId,
3181
3183
toId: 0,
3182
3184
chainGroupId: cgId,
3183
3185
chainId: cId,
@@ -3187,6 +3189,8 @@ https://github.com/Tencent/APIJSON/issues
3187
3189
config: config
3188
3190
},
3189
3191
'TestRecord': {
3192
+ 'userId': userId,
3193
+ 'documentId': documentId,
3190
3194
'host': StringUtil.isEmpty(baseUrl, true) ? null : baseUrl,
3191
3195
'chainGroupId': cgId,
3192
3196
'chainId': cId,
@@ -3198,6 +3202,7 @@ https://github.com/Tencent/APIJSON/issues
3198
3202
format: false,
3199
3203
'Document': isEditResponse ? null : {
3200
3204
'id': did == null ? undefined : did,
3205
+ 'userId': userId,
3201
3206
'project': StringUtil.isEmpty(project, true) ? null : project,
3202
3207
// 'testAccountId': currentAccountId,
3203
3208
// 'chainGroupId': cgId,
@@ -3213,6 +3218,7 @@ https://github.com/Tencent/APIJSON/issues
3213
3218
'detail': App.getExtraComment() || ((App.currentRemoteItem || {}).Document || {}).detail,
3214
3219
},
3215
3220
'TestRecord': isEditResponse != true && did != null ? null : {
3221
+ 'userId': userId,
3216
3222
// 'chainGroupId': cgId,
3217
3223
'documentId': isEditResponse ? did : undefined,
3218
3224
'randomId': 0,
@@ -7184,12 +7190,12 @@ https://github.com/Tencent/APIJSON/issues
7184
7190
if (res == null) {
7185
7191
res = {}
7186
7192
} else {
7187
- var time = res.config == null || res.config.metadata == null ? 0 : ( res.config.metadata.startTime || 0)
7188
- if (time < this.lastReqTime) {
7193
+ var time = res.config == null || res.config.metadata == null ? null : res.config.metadata.startTime;
7194
+ if (time != null && time > 0 && time < this.lastReqTime) {
7189
7195
return
7190
7196
}
7191
7197
7192
- this.lastReqTime = time
7198
+ this.lastReqTime = time == null || time <= 0 ? 0 : time;
7193
7199
}
7194
7200
7195
7201
if (DEBUG) {
@@ -7514,8 +7520,9 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
7514
7520
7515
7521
var project = (this.projectHost || {}).project
7516
7522
7517
- if (isFilter && type == 'caseGroup') {
7523
+ if (isFilter && ( type == 'caseGroup' || type == 'chainGroup') ) {
7518
7524
this.isCaseGroupEditable = true
7525
+ // this.isChainGroupEditable = true
7519
7526
}
7520
7527
7521
7528
var obj = event.srcElement ? event.srcElement : event.target;
0 commit comments