Commit 379ad913 authored by 黎博's avatar 黎博

bug fix

parent 41620335
...@@ -113,7 +113,7 @@ public class AutoUtilsServiceImpl implements AutoUtilsService { ...@@ -113,7 +113,7 @@ public class AutoUtilsServiceImpl implements AutoUtilsService {
Map<String, String> extractMap = JSON.parseObject(extract, Map.class); Map<String, String> extractMap = JSON.parseObject(extract, Map.class);
for (String key: extractMap.keySet()) { for (String key: extractMap.keySet()) {
String value = extractMap.get(key); String value = extractMap.get(key);
String extractValue = ""; Object extractValue = "";
// 如果以$开头,则使用JsonPath解析 // 如果以$开头,则使用JsonPath解析
if (value.startsWith("$")) { if (value.startsWith("$")) {
extractValue = JsonPath.read(response, value); extractValue = JsonPath.read(response, value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment