fix(接口定义): 修复场景批量编辑报错的缺陷 (#15821)

--bug=1014910 --user=王孝刚 【接口测试】批量编辑场景报错
https://www.tapd.cn/55049933/s/1202534

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-07-15 11:29:28 +08:00 committed by GitHub
parent 2e0e93cc8e
commit e16cf6178a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1612,7 +1612,7 @@ public class ApiDefinitionService {
if (StringUtils.isEmpty(request.getModuleId())) {
apiDefinitionRequest.setModuleId(api.getModuleId());
} else {
apiDefinitionRequest.setMethod((request.getModuleId()));
apiDefinitionRequest.setModuleId((request.getModuleId()));
}
if (StringUtils.isEmpty(request.getModulePath())) {
apiDefinitionRequest.setModulePath(api.getModulePath());