mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-06-06 05:49:32 +08:00
修复上传时接口冲突检测未区分请求方法的问题
This commit is contained in:
@@ -23,6 +23,11 @@ public class ApiInfoMagicResourceStorage extends AbstractPathMagicResourceStorag
|
||||
return ApiInfo.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String buildMappingKey(ApiInfo info, String path) {
|
||||
return info.getMethod().toUpperCase() + ":" + super.buildMappingKey(info, path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String buildMappingKey(ApiInfo info) {
|
||||
return info.getMethod().toUpperCase() + ":" + PathUtils.replaceSlash(this.prefix + buildMappingKey(info, magicResourceService.getGroupPath(info.getGroupId())));
|
||||
|
||||
Reference in New Issue
Block a user