Browse Source

拼写错误

master
yechuan 1 year ago
parent
commit
a66d6f1742
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      source/src/main/java/work/xuye/source/handler/SourceHandler.java

+ 4
- 4
source/src/main/java/work/xuye/source/handler/SourceHandler.java View File

@@ -351,7 +351,7 @@ public class SourceHandler {
if (ObjectUtils.isEmpty(headers)) {
return;
}
request.setHeaders(aclculationPlaceholderMap(request.getHeaders(), request));
request.setHeaders(calculationPlaceholderMap(request.getHeaders(), request));
}


@@ -370,7 +370,7 @@ public class SourceHandler {
/**
* 计算占位符的值,并返回此map
*/
private Map<String, Object> aclculationPlaceholderMap(Map<String, Object> placeholderMap, HttpRequestParams request) {
private Map<String, Object> calculationPlaceholderMap(Map<String, Object> placeholderMap, HttpRequestParams request) {

for (String key : placeholderMap.keySet()) {
Object placeholderValue = placeholderMap.get(key);
@@ -389,7 +389,7 @@ public class SourceHandler {
if (ObjectUtils.isEmpty(body)) {
return;
}
request.setBody(aclculationPlaceholderMap(request.getBody(), request));
request.setBody(calculationPlaceholderMap(request.getBody(), request));
// for (String key : body.keySet()) {
// Object value = body.get(key);
// Matcher matcher = RegexConstants.PLACEHOLDER_PATTERN.matcher(value.toString());
@@ -417,7 +417,7 @@ public class SourceHandler {
}


aclculationPlaceholderMap(patternMap, request);
calculationPlaceholderMap(patternMap, request);
// Map<String, String> placeholderExpressions = request.getPlaceholderExpressions();




Loading…
Cancel
Save